nearpoint: don't pick currently processed point?

   1821   2   0
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Hi!

I've got a point cloud and for each pt, I want to find the distance of the nearest pt. I was using the nearpoint function but I found out it always found the currently processed point to be the closest point.

What would be a simple way to exclude the processed point from the nearpoint search?

-Olivier
User Avatar
Member
2038 posts
Joined: Sept. 2015
Offline
Use the return array of the nearpoints function and limit its' search to 2 pts.

Then always reference the second element of the array.(as the first element will be the point you are using to search from).
Edited by BabaJ - Feb. 20, 2019 11:07:30
User Avatar
Member
1007 posts
Joined: April 2017
Offline
yeah! I just found out.

Thanks!

-Olivier
  • Quick Links