浏览代码

fix: update

xzw 1 月之前
父节点
当前提交
44a63cb86a
共有 3 个文件被更改,包括 3895 次插入3417 次删除
  1. 3888 3412
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map
  3. 6 4
      src/sdk/cover/index.js

文件差异内容过多而无法显示
+ 3888 - 3412
public/lib/potree/potree.js


文件差异内容过多而无法显示
+ 1 - 1
public/lib/potree/potree.js.map


+ 6 - 4
src/sdk/cover/index.js

@@ -1341,12 +1341,14 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
                     return new THREE.Euler(Math.PI / 2, 0, 0)
                 } else return new THREE.Euler(0, 0, 0)
             }
-            let getDefaultRotation = () => { 
+            let getDefaultRotation = (type) => { 
+                let rotation 
                 if(model.lonLatRot){ 
-                    return model.lonLatRot
+                    rotation = model.lonLatRot
                 }else{
-                    return getBaseRotation() 
+                    rotation = getBaseRotation() 
                 } 
+                return type == 'getEuler' ? rotation : rotation.toObject() //给前端用
             }
             
             if (props.rotation) {
@@ -2479,7 +2481,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
                   
                     if(Potree.settings.pathSmooth){  
                         let curve = path.curve.clone(); 
-                            curve.points.forEach(e=>e.z += 2)
+                            curve.points.forEach(e=>{e.add(path.edge.position), e.z += 2})
                             
                         if(path.reverse) curve.points.reverse()