修改BIM管理
parent
e1891fbfa0
commit
1873d9fe7d
|
@ -912,7 +912,7 @@ export default {
|
|||
if (api.m_model.size > 0) {
|
||||
setTimeout(() => {
|
||||
this.initModelPosition()
|
||||
}, 10000)
|
||||
}, 1000)
|
||||
} else {
|
||||
setTimeout(fnInit, 1000);
|
||||
}
|
||||
|
@ -960,13 +960,14 @@ export default {
|
|||
let api = bimMgrApi;
|
||||
this.models.forEach(modelInfo => {
|
||||
if (modelInfo) {
|
||||
let modelId=modelInfo.lightweightName
|
||||
let modelId = modelInfo.lightweightName
|
||||
let cfg = this.$tryToJson(modelInfo.bimConfig, {});
|
||||
let x = cfg?.x || 0;
|
||||
let y = cfg?.y || 0;
|
||||
let z = cfg?.z || 0;
|
||||
let rotateZ = cfg?.rotateZ || 0;
|
||||
if (x * 1 + y * 1 + z * 1 != 0) {
|
||||
console.log("移动模型", modelId, x, y, z)
|
||||
api.Model.moveToPosition([x, y, z], 0, modelId)
|
||||
}
|
||||
if (rotateZ * 1 != 0) {
|
||||
|
@ -977,7 +978,15 @@ export default {
|
|||
this.hideParts.push(it);
|
||||
})
|
||||
}
|
||||
api.Model.location(modelId);
|
||||
setTimeout(() => {
|
||||
api.Model.location(modelId);
|
||||
this.resetScene();
|
||||
if (x * 1 + y * 1 + z * 1 != 0) {
|
||||
setTimeout(() => {
|
||||
api.Camera.lookAt({ position: [x, y, z], distance: 20000, heading: 90, pitch: -45 })
|
||||
}, 1000);
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
this.initHideParts()
|
||||
});
|
||||
|
@ -987,7 +996,7 @@ export default {
|
|||
let hideCnt = 0;
|
||||
let hideFn = () => {
|
||||
hideCnt++;
|
||||
if (hideCnt > 30) {
|
||||
if (hideCnt > 20) {
|
||||
return;
|
||||
}
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue