xzw před 1 rokem
rodič
revize
c7bcee3ede
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/custom/potree.shim.js

+ 1 - 1
src/custom/potree.shim.js

@@ -407,7 +407,7 @@ Utils.getMousePointCloudIntersection = function(viewport, mouse, pointer, camera
             pointcloud: selectedPointcloud,
             point: closestPoint,
             pointclouds: allPointclouds, //add 
-            normal: new THREE.Vector3().fromArray(closestPoint.normal )//add
+            normal:new THREE.Vector3().fromArray(closestPoint.normal ).applyMatrix4(selectedPointcloud.rotateMatrix)//add
         };
     } else {
         return null;