diff --git a/public/static/qm/MainMap_QM_go.js b/public/static/qm/MainMap_QM_go.js index 50607c1..3963f61 100644 --- a/public/static/qm/MainMap_QM_go.js +++ b/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) } } @@ -5959,21 +5959,12 @@ MyModel_QM = function () { this.yaxis = 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 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 - Map_QM.util.lineBasicMaterialArr.push(material) - } + Map_QM.util.lineBasicMaterialArr.push(material); // 创建模型 let mesh = new THREE.Mesh(scanGeometry, materials) mesh.position.z = toHeight