Does anyone know how to sort a list of points to find the closest neighbors to each point?
I looked at Scott Davidson's post of sort and sub list (attached below), but I could not adapt it to sort the list of just group of points only. His file finds the n-closest points to a point on a curve, but I want to find the n-closest points for each point in the group. I would use the Proximity3d component but it will only take points from the rhino model, baked and brought in, not points from grasshopper algorithm.
I started a VB node to try and do this but I am not getting very far. I can find the closest pt, but not the 4, 5, or 6 closest points with my method.
I am using version 0.6.0043.
thanks,
Guy
any help? any ideas?
Tags:
- Attachments:
-