Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I have two lists of curves A and B, both have the same number of branches, but list A have only one item per branch and list B can have one or two items. For each item in the list B I want to multiply the number of items in the list A, so at the end I will end up with the same number of elements in each lists.

e.g. (for branch 1 in list A I want to have two times the same curve, and the same for the branch 2 and so on )

List A (Data with 88 branches)

{0} N=1

{1} N=1

{2} N=1

{3} N=1...

List B (Data with 88 branches)

{0} N=1

{1} N=2

{2} N=2

{3} N=1...

NEW List A (Data with 88 branches)

{0} N=1

{1} N=2 

{2} N=2

{3} N=1...

Any suggestions about how to do this?

Thank you,

Martha

Views: 1241

Replies to This Discussion

Try feeding both trees through the "Longest List" data matching component. 

It worked. Thanks for your help Andrew,

I was trying very complicated stuff and this simple and elegant component did it. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service