xzw 1 năm trước cách đây
mục cha
commit
c7bcee3ede
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;