xzw 1 年之前
父節點
當前提交
c7bcee3ede
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;