algorithmic modeling for Rhino
hi all!
I'm working on a definition that depending on the case I have to repeat and copy it underneath to perform the same set of operations on the results of the one before, so I need to mantain the branching form of data in lists.
mostly working it out with dispatch,
iteration 0 (2^0=1 item)
true/false
iteration 1 (2^1=2 items)
true/true/false/false
iteration 2 (2^2=4 items)
true/true/true/true/false/false/false/false
etc
and for the most parts gh understands and mantains the structure, I'm on iteration 2 now
and need to move each of this points on their corresponding vector, i could flatten but i want to mantain the tree like structure of the points
maybe the structure of those vectors is like that because i constructed them from one same point to two different points for each: like a V for each...
would appreciate it very much if someone could help me with a logic to modify these and if I repeat it another time with a more complicated tree to still mantain the logic..
thank you!
Tags:
Flatten??? but by doing that ... er ... hmm ... could you post the def?
hi peter!
thank you for your reply,
but by using flatten, I lost the tree-like configuration...
in the end it was pretty easy I managed to make it work with graft, I had tried it but couldn't make it work in the beggining... but not it works! thanks.
now I'm almost done but in the end I'm having problems with how to connect the points in the branches with lines, same branching problem but grafting wont do it here...
each point needs to connect to other two points in the next list, and so on, always mantaining the tree like structure you can see in the param viewer, the idea is to see how the structure works in the rhino output...
here are the points with the internalized data, and what I would like to achieve too.
I know it has to be easier than doind one by one...
What paranoid trees are these? - like them, he he (Note: post some simplified "overview" of what you are after).
BTW: if this what you are trying to do? (not sure , but ... anyway)
hi!! sorry for the delay, I didn't quite understand your definition, I'm not good with other programming languages...
here's the final product and how I achieved it, I had to manually do path mapping...
I connected the first iteration without modifying it, and then did a pathmapper adding each time a new letter.. it worked, I don't know how to do it without doing it manually, it would be good if the pathmapper new that it has to add a new letter each time.
here's a screenshot of the results
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by