algorithmic modeling for Rhino
Hi all:
I´ve been working on this proyect, and i had to spend a couple hours in order to arrange my data structure.
I was able to fix it but i think is really really messy.
Could one of you guys show me a cleaner, faster and more elegant way?
So first i had this 2 data structures:
0,0,0
0,0,0,0,0,0
I used a bunch of graft tree components to make both
0,0,0,0,0,0,0,0,0
Im sure im missing something, i dont think i have to use so many graft tree components
There must be another component that achives this
Finally i used the path mapper since the structure was line this
0,0,0,1,0,0,0,0,0
0,0,0,0,0,0,0,0,1
so
A,B,C,D,E,F,G,H,T _____A,B,C,E,F,G,H,I,D
Thanks for your help
Regars
Mario
Tags:
Do you not have the option to simplify the paths?
Hi Michael,
the path mapper operates on placeholder variables. Numbers are just evaluated as numbers. Try using 'A', 'B', 'C', 'D' etc. instead of '0'
--
David Rutten
david@mcneel.com
Poprad, Slovakia
yes I know, I just typed this in on a whim that it might work and I thought it did in this situation for adding paths of just 0, did it not? Although, I personally would just use simplify rather than increasing the path count.
also flatten the outputs and then graft the input to loft would also get the results for this case. but if you are happy to use a path mapper for one set why not do it for both.
list 1
{A;B;C}(i) --> {i}
list 2
{A;B;C;D;E;F}(i) --> (i)
both of these actions reduces the list down to one branch per item at the highest level.
Thanks so much to all of you guys for all your help
i used simply tree ....it really makes a good job!
Regards
also, in case you do not know already besides the component simplify is also an input/output option. It was added with graft, flatten, and reverse.
testing_
sweet....thanks michael!!!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 1 Like
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson. Powered by