|
@@ -1676,8 +1676,12 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
path.addOrRemovePoint && path.setAddOrRemPoint(false)
|
|
path.addOrRemovePoint && path.setAddOrRemPoint(false)
|
|
|
|
|
|
if(Potree.settings.pathSmooth){
|
|
if(Potree.settings.pathSmooth){
|
|
- let curve = path.curve.clone();
|
|
|
|
|
|
+ let curve = path.curve.clone();
|
|
curve.points.forEach(e=>e.z += 2)
|
|
curve.points.forEach(e=>e.z += 2)
|
|
|
|
+
|
|
|
|
+ if(path.reverse) curve.points.reverse()
|
|
|
|
+
|
|
|
|
+
|
|
//let geoPoints = path.geoPoints.map(e=> e.clone().add(new THREE.Vector3(0,0,2)) )//height
|
|
//let geoPoints = path.geoPoints.map(e=> e.clone().add(new THREE.Vector3(0,0,2)) )//height
|
|
let duration = path.totalLength / 3
|
|
let duration = path.totalLength / 3
|
|
//let tangentDt = path.totalLength * 0.0001
|
|
//let tangentDt = path.totalLength * 0.0001
|