|
@@ -390,7 +390,10 @@ var enter = ({
|
|
if(!baseLine){
|
|
if(!baseLine){
|
|
return console.error('创建失败,因基准线不存在')
|
|
return console.error('创建失败,因基准线不存在')
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if(!fixPoint.basePoint){
|
|
|
|
+ return console.log('no basePoint')
|
|
|
|
+ }
|
|
|
|
+
|
|
let fixPoint2d = new THREE.Vector2().copy(fixPoint)
|
|
let fixPoint2d = new THREE.Vector2().copy(fixPoint)
|
|
let baselineP12d = new THREE.Vector2().copy(baseLine.points[0])
|
|
let baselineP12d = new THREE.Vector2().copy(baseLine.points[0])
|
|
let baselineP22d = new THREE.Vector2().copy(baseLine.points[1])
|
|
let baselineP22d = new THREE.Vector2().copy(baseLine.points[1])
|
|
@@ -786,10 +789,11 @@ var enter = ({
|
|
|
|
|
|
viewer.fixPoints.push(mainPoint)
|
|
viewer.fixPoints.push(mainPoint)
|
|
}
|
|
}
|
|
-
|
|
|
|
- mainPoint.basePoint = new THREE.Vector3().copy(basePoint)
|
|
|
|
mainPoint.bus = bus
|
|
mainPoint.bus = bus
|
|
- createMeasureForPoint(mainPoint)
|
|
|
|
|
|
+ if(measure && basePoint){
|
|
|
|
+ mainPoint.basePoint = new THREE.Vector3().copy(basePoint)
|
|
|
|
+ createMeasureForPoint(mainPoint)
|
|
|
|
+ }
|
|
viewer.addEventListener('baseLineChanged',baseLineChanged)
|
|
viewer.addEventListener('baseLineChanged',baseLineChanged)
|
|
|
|
|
|
|
|
|