Grasshopper

algorithmic modeling for Rhino

Hi there,

Hope to find a good Samaritan able to help me here. I have a data tree structure consisting of repetitive items on each list in a random order. My intention is to Isolate the sets individually at each branch keeping the same data structure than the original one (like the exercise attached), but in a fashion that this data manipulation can be sorted out with less manual input (like having an unique cluster to handle this data ideally), since this logic wont work if new "fruits" are added into the cart =) i.e. watermelons and oranges!

Apps I used in this exercise: Anemone, Wombat

Thanks for your time!

Alan

Views: 2834

Attachments:

Replies to This Discussion

Pffff, this was far too difficult. I couldn't think of a way to take a tree and duplicate every branch N times fully automatically. So I had to flatten the entire tree, duplicate the flat list until it had the correct length, then rebuild the tree from scratch.

I think I got there in the end though, but it aint pretty.

Attachments:

I did not have all your plugins so I have not been able to verify if it is ok, but just in case, here is my alternative.

Attachments:

Pretty neat!

Metahopper's "Wrap" and "Unwrap" list functions can make operations like this a bit simpler / cleaner - by allowing you to operate on lists as objects. 

Attachments:

David, Daniel and Andrew,

Kudos to you guys!, thanks so much for sharing your samples, very interesting and illustrative results in three different ways, also thanks for showing me how a nested tree path should be properly done =).

Alan

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service