Browse Source

fix: ci

ShangHai_LongXiang
高志龙 3 years ago
parent
commit
8e596936d2
  1. 19
      public/static/qm/MainMap_QM_go.js

19
public/static/qm/MainMap_QM_go.js

@ -5942,7 +5942,7 @@ FloorMap_QM.prototype = {
// } // }
} }
} }
let mahc = this.Model_QM.MyParkShape(shapeArr, materials, parkHeight, borderColor)
let mahc = this.Model_QM.MyParkShape(shapeArr, materials, parkHeight)
this.parkObj.add(mahc) this.parkObj.add(mahc)
} }
} }
@ -5959,21 +5959,12 @@ MyModel_QM = function () {
this.yaxis = 0 this.yaxis = 0
this.node = 0 this.node = 0
} }
MyModel_QM.prototype.MyParkShape = function (shapes, materials, toHeight = 5, borderColor = 0xaaaaaa) {
MyModel_QM.prototype.MyParkShape = function (shapes, materials, toHeight = 5) {
let scanGeometry = new THREE.ShapeBufferGeometry(shapes, 1) let scanGeometry = new THREE.ShapeBufferGeometry(shapes, 1)
let material
for (let k = 0; k < Map_QM.util.lineBasicMaterialArr.length; k++) {
let color2 = new THREE.Color(borderColor)
if (Map_QM.util.lineBasicMaterialArr[k].color.equals(color2)) {
material = Map_QM.util.lineBasicMaterialArr[k]
}
}
if (!material) {
material = new THREE.LineBasicMaterial({
color: borderColor
let material = new THREE.LineBasicMaterial({
color: "#aeaeae"
}) //材质对象lineColor }) //材质对象lineColor
Map_QM.util.lineBasicMaterialArr.push(material)
}
Map_QM.util.lineBasicMaterialArr.push(material);
// 创建模型 // 创建模型
let mesh = new THREE.Mesh(scanGeometry, materials) let mesh = new THREE.Mesh(scanGeometry, materials)
mesh.position.z = toHeight mesh.position.z = toHeight

Loading…
Cancel
Save