xzw 1 rok temu
rodzic
commit
c7bcee3ede
1 zmienionych plików z 1 dodań i 1 usunięć
  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;