Grasshopper

algorithmic modeling for Rhino

Hi!

I have a tree {A,B} with B = {0} and B = {2} here

and a list of indexes.

I need to select

• in the sub-tree B={0} the value of index=0

• in the sub-tree B={2} the value of index=1

Please look at the files attached (if could be clearer than my explanation) :

- screenshot of the definition

- GH file

Any ideas ?

JL

Views: 307

Attachments:

Replies to This Discussion

Had a little crack at it, and this is one way of doing it, by shifting the list and then culling using 2 different patterns for each branch.

Attachments:

A less elegant approach to Armins (doesn't require a TreeSloth plugin tho).

Attachments:

Thank you !

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