how to find the closest number in geometry (with out considering the current pt)

   1708   3   0
User Avatar
Member
621 posts
Joined: Aug. 2008
Offline
I am using near point/expression, but for each point on the loop it return itself, so when it get to the loops grabs point zero position and look for the closest point, and that same point been exactly at the same place it pick up as the closest,

I was expecting the “near point” to look for the nearest point excluding itself(the current point in the loop)

in my example for point zero the closest point is number 10



this is my hip example, how can I find the near point using the same geometry?


(later on I want to be able to select the nearest if they belong to a group, that way I can find the closest root to each root)
Edited by pelos - Dec. 29, 2018 22:03:12

Attachments:
near_points_add.hip (120.3 KB)

User Avatar
Member
621 posts
Joined: Aug. 2008
Offline
I found something like this but it hast to calculate pops
there is a proximity node inside pops basically that's what I want but with out having to cache it by frames

Attachments:
attribNearest.hipnc (82.1 KB)

User Avatar
Member
1803 posts
Joined: May 2006
Offline
Use nearpoints instead, and grab the second element from the array.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
621 posts
Joined: Aug. 2008
Offline
super smart idea!!!
  • Quick Links