xzw 1 ano atrás
pai
commit
c7bcee3ede
1 arquivos alterados com 1 adições e 1 exclusões
  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;