Grasshopper

algorithmic modeling for Rhino

Hi,

heres my issue. i have a tree that's, let's say, 5 elements long (i don't know what the proper term is for a tree item).

within each of these 5 elements is a list of lines that has three indicies. what i want to do is create a loft between the lines at the common indice between each element. so if the original tree looks like this

       {0}

   0 line

   1 line

   2 line

       {1}

   0 line

   1 line

   2 line

.... and so on

all the "0 line(s)" would loft together, as would the "1 line(s)" to each other... and so on.

i need a way to do this dynamically in the case that the list length goes from 3 indicies to, say, 8 indicies...

any ideas?

M

  

Views: 398

Replies to This Discussion

flip is the trick

Best regards

DeDackel

Flip Matrix component on the Sets Tab > Tree Panel will "flip the rows to columns and the columns to rows"

Correct Terminology for Data Trees in Grasshopper according to.... me:

Trees have Branches of Data. The Data can be Single Items or Lists of Items. Your example above is a Tree with 2 Branches of 6 Items. Each Branch is a List of 3 Lines. using the Flip Matrix component will result in a Tree with 3 Branches of 6 Items. Each Branch would be a List of 2 Lines.

Flip Matrix did the trick.

thanks for the help.

M

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