邓洁 : 隧道模型合并

This commit is contained in:
dengj
2023-12-07 15:58:43 +08:00
parent 7766cd16ef
commit 5f14289731
25 changed files with 438499 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
export function removeDev() {
if (!this.targetPoint.hasDevice) {
alert("该附着点不存在设备");
return;
} else {
// 删除模型逻辑
const devId = this.targetPoint.info.devId;
const model = this.scene.getObjectById(devId);
this.scene.remove(model);
// 附着点可见
this.targetPoint.visible = true;
this.targetPoint.info = null;
// 按钮可否操作情况
this.addBtn.disabled = false;
this.removeBtn.disabled = true;
this.targetPoint.hasDevice = false;
}
}