xzw před 1 měsícem
rodič
revize
44a63cb86a
3 změnil soubory, kde provedl 3895 přidání a 3417 odebrání
  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

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 3888 - 3412
public/lib/potree/potree.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 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()