Grasshopper

algorithmic modeling for Rhino

CREATE TREE BRANCHES CONTAINING MULTIPLE ELEMENTS FROM A UNIQUE ONE

Hi guys,

I have this list of curves in one unique branch, and I need to group them in different branches containing each 12 curves.

As you can see from the image, in the rhino view they correspond to isolated groups of 12 curves, but grasshopper recognize them all together, using graft is not useful in this case beacuse I need groups and not single isolated curves.

 

Is there a way to create different branches from a unique one, containing each 12 elements?

I've tried with path-mapper but I haven't succeded....

 

Thank a lot!

 

Giulio.

 

Copia di A.jpg

Views: 6169

Replies to This Discussion

You were very nearly there with the path mapper. Use the integer divide or backslash dived '\' on the Index

WOOOOOOOOOOOOOOOOOW!
Thanks a lot!

That's great!!!! :D
BTW, if you wanted it the other way around i.e. instead of having the 12 curves that make up the polyline. You can get the first curves grouped together and the second etc by using the modulo operator '%' instead or the '\'. Try it and see.
would you have any ideas on how to split a list of multiple curves with a different number of curves in each branch? any help would be greatly appreciated!

Hi Sean,

 

There is no way, at present, to get any user data into the pathmapper for this type of task. You could use a component like Tree Item, where you specify indices to be retrieved from the tree on a specified path. Have a look at this:

 Like everything in GH, I'm sure there are other ways. :)

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service