Grasshopper

algorithmic modeling for Rhino

i have a set of curves whose centroid are contained within larger curves. after finding which centroids fall into these larger curves, i want to be able to sort the original set of curves into branches so that i can use one vector per branch to move and scale them all by the same factors. i am thinking this may have something to do with duplicating a vector for as many times as there are curves within each container, but i am not sure how to go about sorting the original set of curves based on this pattern. any help would be appreciated!

see the attached screenshot/model. the green curves are the ones i want sorted into branches, and the blue curves are their respective containers.

 

thank you!

Views: 771

Attachments:

Replies to This Discussion

is that what you are looking for?
Attachments:

If I'm interpreting your question correctly, I think this is the solution you're after:

Attachments:
ah, that makes sense :-) I think you got it

thanks for the reply

i tried using your definition based on your screenshot but when i get the Dispatch output i only get the first set of curves within the first container (the ones you've labeled with the {0;3;0} path). how did you dispatch the curves within the other two containers?

got it to work! i didn't flatten the initial set of curves properly in the rest of the definition i'm working on. thanks again for your solution!
oh whoops my mistake - had meant to upload the GHX, not the PNG. Glad you got it working regardless!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service