Grasshopper

algorithmic modeling for Rhino

Hello everybody!

I hope someone can help me with my problem.

I have 3 lists with N elements (lines) each. I would like to Join equivalent elements of each list te create polylines. 

a (0,1,2,n)

b (0,1,2,n)

c (0,1,2,n)

 

And i Would like to have:

 

d (0(a0+b0+c0),1(a1+b1+c1),n(an+bn+cn)  , d being a list of polylines ( triangles in this particular case because an, bn and cn are three sides of a same triangle.)

 

Thank you

Views: 212

Replies to This Discussion

Hi Rodrigo,

 

sounds like you need to flip your matrix containing the lines so that instead of 3 lists of n items, you get n lists of 3 items. These can then be joined using the good old Join component.

 

You can flip a data tree either using a Path Mapper, or using the Flip Matrix component.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

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