Grasshopper

algorithmic modeling for Rhino

Hello, I posting this out of curiosity, because I could not achieve the result I wanted with a polyline, instead I made lines connecting certain points and others connecting, well, others.

I want to connect the points with lines following this zig zag pattern.

I simply could not manage to do this with a polyline.

Each facade is a data tree of points

Each row of points is a branch/list.

I believe I need the same x item of each branch and then make a polyline using those.

So all 0 items will do a polyline, all 1 items, etc.

Of course, I would need to retrieve all 0 items from the trimmed trees, to follow this pattern.

Thanks for any insight.

Shynn

Views: 692

Attachments:

Replies to This Discussion

"Flip Matrix+Weave" should work.

Attachments:

mmm, its true that the polyline connects automatically 1 with 2 with no need to change the tree branches! As its a polyline its obligated to go through all points you tell it to, and so as it has no other way to go from 1 to 2 it generates the diagonal.

So the polyline goes through all the first items of the unflipped data, but follows 1,2,3,4 of the flipped. So you are, indeed, gathering all the first points of each branch.

And so the wave components combines both data trees, so that all 0 points are one row of one data tree but then the 1 values are the row of the other data tree.

Beautiful, thanks

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service