加了路由,简单预览模式实现
This commit is contained in:
@@ -370,8 +370,8 @@ export default class Demo {
|
||||
|
||||
// 初始化风机颜色
|
||||
this.equMap.get("equ_fan").traverse((v) => {
|
||||
// v.material = new this.THREE.MeshBasicMaterial();
|
||||
// v.material.color = new this.THREE.Color("#191a05");
|
||||
v.material = new this.THREE.MeshBasicMaterial();
|
||||
v.material.color = new this.THREE.Color(0xC0C0C0);
|
||||
if (/^leaf/.test(v.name) || /^roller/.test(v.name)) {
|
||||
group.add(v.clone());
|
||||
v.visible = false;
|
||||
@@ -513,6 +513,7 @@ export default class Demo {
|
||||
for (const item of this.tunnelConfigEquipment) {
|
||||
//使用api取拿到附着点
|
||||
let pointmodel = this.scene.getObjectByName(item.pointName)
|
||||
// pointmodel.hasDevice = true;
|
||||
let formInfo = {
|
||||
equipmentType: item.equipmentType, //设备类型
|
||||
chooseEquipment: item.equipmentName, //设备选择(设备名称)
|
||||
|
||||
Reference in New Issue
Block a user