algorithmic modeling for Rhino
Ok, I've never asked a question on these forums before so any advice or help would be very much appreciated.
What I'm wondering is how can you simplify a tree structure such that every branch is renumbered by the following logic:
{0;0} > {0}
{1:0} > {1}
{1:1} > {2}
{1:2} > {3}
{2:0} > {4}
Any help would be great.
Thanks,
James
Tags:
Hi James,
You can use the Path Mapper to achieve this. If you have Grasshopper 0.9.0062 or newer you can use the presets in the menu to automatically create this mapping:
The mapping for this is always {?????} -> {path_index}
Where the question marks represent what you actually have. If your input is {0;0}, {0;1}, {0;2}, {1:0}, {1:1} etc. then ????? will be {A;B}
--
David Rutten
david@mcneel.com
David,
Thank you very much for your quick response. That was exactly what I was after.
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