Grasshopper

algorithmic modeling for Rhino

I have a feeling I'm missing something very simple, but basically what I am trying to do is merge 3 data trees containing lists of points without their branches combining...

The image shows what I'm getting when I merge the three trees, but what I would like to get is:

essentially a tree with 27 branches, each with a single list of either 11 or 21 points.

{0} (N=11)
{1} (N=11)
...
{10} (N=21)
{11} (N=21)
...
{17} (N=11)
{18) (N=11)
{27} (N=11)

Any help would be greatly appreciated.

All the best,

Matt

Views: 1077

Replies to This Discussion

Try a path mapper on the second and third lists. Mapping from {A} to {A+10} for the first and from {A} to {A+17} for the second will give you streams that will not combine when fed into the merge component.
Thanks Andrew, that's awesome I didn't know you could use numbers within the path mapper.

Is there any way to do it so that if the numbers of lists change upstream it will still work? Or would I have to change the "+10" and "+17" manually each time?

Thanks again,

Matt
The way to accomplish this is to decompose and recompose the branch paths and use "replace branches" to apply the new paths to the data.
Attachments:
Thanks again Andrew, you've been most helpful!

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