Grasshopper

algorithmic modeling for Rhino

I have a series of points along a set of U-curves on a surface. I need to find the closest point between any given point, and the points of the same index from the other U-curve paths. For example, if there are 41 U-curves, each with 161 points along them, I want to pick a point and be able to search among only the 41 points of the same index value.

I've tried to do a series component going into a list item component, which works when only one index is selected from the 161 available; I thought the same logic would work to be able to run the same operation on all 161 indices at the same time, but it doesn't seem to work quite so simply.

Another way I thought of doing it would be to say I want to pick a point of branch x, index B, and search only the two points next to it, which would be x,B+1 and x,B-1, but I don't know how to perform this logic in grasshopper.

Any suggestions?

Views: 4273

Attachments:

Replies to This Discussion

You don't actually need to graft the points to search from (P). This will give you a tree with 161 branches, containing in 41 subbranches the closest points for each point in your points matrix. (need to remove the branch selection though ;) )

ok well i managed to accomplish what i wanted, but using a series component feeding a subset list component, check it out:

Attachments:

Same result in two versions without a series...

Attachments:

great job Hannes, this is much simpler and cleaner, thank you so much

thanks everyone for your help, really appreciate your input

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service