Grasshopper

algorithmic modeling for Rhino

Hello,

I have a question concerning of some sort of merging or flattening data tree of True / False datas into one branch, for example if I have a tree with 2 branches:

(0;0)

0 False

1 True
2 False

3 False

4 False

(0;1)

0 False

1 False
2 False

3 True

4 False

into a branch taking all the True values at their original coresponding lines:

(0;0)

0 False

1 True
2 False

3 True

4 False

I hope it's understandable what I'm asking, thanks!

Views: 577

Replies to This Discussion

You can use "Gate Or".

Thanks! I had the branches in one tree but i managed to fix that with Explode Tree component, works flawlessly!

Two approaches spring to mind. The first is simple, but only works if you know for sure you only have 2 branches, the second approach is more flexible.

Attachments:

Incidentally you can 'grow' the Or component if you zoom in and use the (+) symbols, by more flexible I meant that if the number of branches changes the second approach keeps working without needing adjustment.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service