加了路由,简单预览模式实现

This commit is contained in:
Hcat1314
2023-12-17 21:55:54 +08:00
parent ca51f5d789
commit d769d353be
3 changed files with 200 additions and 21 deletions

View File

@@ -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, //设备选择(设备名称)