potree-core icon indicating copy to clipboard operation
potree-core copied to clipboard

Point Picking returning NaN

Open mandre96 opened this issue 1 year ago • 3 comments

Hi! I'm trying to use the point-cloud-octree-picker, but I am having several problems in doing it. With the latest commit, when i hit the point cloud it returns a NaN. I checked the code and it seems that the hit.pIndex does not find the respective position attribute index in the PointCloudOctree.

I already tried switching back to this method of acessing const x = values.array[3 * hit.pIndex]; const y = values.array[3 * hit.pIndex + 1]; const z = values.array[3 * hit.pIndex + 2];

    point.position = new Vector3(x, y, z).applyMatrix4(points.matrixWorld);

I have tried to reverse the code, however the pickpoint does not work properly. Any idea how I can use this feature?

mandre96 avatar Jun 26 '23 18:06 mandre96