I need to find the nearest point in a pointcloud. I’m using GetClosestPoint of pointcloud, but I do this many times, and I need to do it faster. I have tried to use GetClosestPoint with maximum distance parameter, with the idea that less points will be tested, but the function takes the same time to obtain the nearest point, no matters the maximum distance I use.
I noticed too, as I told in another post, that if I create a mesh from my pointcloud, and I use the closest point function of the Mesh, it is faster than the pointcloud one. But I need to do it faster in a pointcloud. I think obtaining a closest point in a pointcloud should be easier than in a mesh, so why is it slower?
Thanks in advance.