Compare commits
No commits in common. "08b2ed19e6bf2bc5ca4124249fc3f3dd22fdfc58" and "0fddcc3aed337d90e3bab9c89d358ce86d40b1e2" have entirely different histories.
08b2ed19e6
...
0fddcc3aed
5125
public/jzc/jz.gltf
5125
public/jzc/jz.gltf
File diff suppressed because one or more lines are too long
|
@ -573,8 +573,7 @@ const removeLabel = () => {
|
||||||
|
|
||||||
// 设置地板
|
// 设置地板
|
||||||
const setBottom = () => {
|
const setBottom = () => {
|
||||||
var target = scene.getObjectByName('tanghua_2F');
|
var target = scene.getObjectByName('tanghua_1F');
|
||||||
centerSelectedGroup(target);
|
|
||||||
console.log(target);
|
console.log(target);
|
||||||
if (isRemoveBottom.value) {
|
if (isRemoveBottom.value) {
|
||||||
target.visible = false;
|
target.visible = false;
|
||||||
|
@ -673,7 +672,6 @@ const changeMap = (img) => {
|
||||||
}
|
}
|
||||||
// 巡检
|
// 巡检
|
||||||
const check = () => {
|
const check = () => {
|
||||||
|
|
||||||
if (currentIndex < romeObj.length) {
|
if (currentIndex < romeObj.length) {
|
||||||
// .getWorldPosition()属性需要用三维向量表示摸个坐标后方可读取
|
// .getWorldPosition()属性需要用三维向量表示摸个坐标后方可读取
|
||||||
var checkPosition = checkArr[checkindex].getWorldPosition(new THREE.Vector3());
|
var checkPosition = checkArr[checkindex].getWorldPosition(new THREE.Vector3());
|
||||||
|
@ -688,16 +686,13 @@ const check = () => {
|
||||||
if (checkindex == romeObj.length) { // 巡检结束
|
if (checkindex == romeObj.length) { // 巡检结束
|
||||||
checkComplete();
|
checkComplete();
|
||||||
}
|
}
|
||||||
check()
|
setTimeout(() => {
|
||||||
|
check()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var pos1 = new THREE.Vector3( camera.position );
|
// 显示标签,已经检查通过
|
||||||
|
addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
|
||||||
var pos2 = new THREE.Vector3( checkPosition );
|
|
||||||
|
|
||||||
var distance = pos1.distanceTo(pos2);
|
|
||||||
console.log(12354, distance);
|
|
||||||
|
|
||||||
let nextObj;
|
let nextObj;
|
||||||
if (checkindex == checkArr.length - 1) {
|
if (checkindex == checkArr.length - 1) {
|
||||||
nextObj = checkArr[0].getWorldPosition(new THREE.Vector3())
|
nextObj = checkArr[0].getWorldPosition(new THREE.Vector3())
|
||||||
|
@ -712,8 +707,6 @@ const check = () => {
|
||||||
|
|
||||||
ease: "power1.inOut",
|
ease: "power1.inOut",
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
// 显示标签,已经检查通过
|
|
||||||
// addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
checkindex++;
|
checkindex++;
|
||||||
|
@ -723,10 +716,8 @@ const check = () => {
|
||||||
// 巡检结束
|
// 巡检结束
|
||||||
const checkComplete = () => {
|
const checkComplete = () => {
|
||||||
toHomeView();
|
toHomeView();
|
||||||
// checkindex = 0;
|
|
||||||
bimStore().setCheckArr(romeObj);
|
bimStore().setCheckArr(romeObj);
|
||||||
emit('checkComplete', romeObj);
|
emit('checkComplete', romeObj);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue