algorithmic modeling for Rhino
Ok I fixed it with path mapper... Any reason simplify doesnt work in this case?
As you correctly noticed the Simplify action will only work on trees with multiple Branches. When a path is {0;0;0;0;0} it might seem obvious to you that you just want {0} but what if it was {0;0;1;0;1} should it be {0}, {1} or {1;1} or even {0;0;0}?
This leaves you to simplify it yourself. here are a couple of methods depending on whether you need it to change as your definition changes.
Path Mapper:
Dynamic Last Path:
Oh and here is the Anything But Zeros Method as pondered:
Hi Danny,
I am trying to solve the following problem;
I can have one tree with one branch (for example {0;0;0;0;0;0} OR one tree with multiple branches ( {0;0;0}, {1;0;0}, .... {4;0;0}).
I want the output to be a tree with single digits as branch numbers ( {0}, {1}, ... {4})
I tried the following but got unexpected results:
I thought I could use your function if the tree only had 1 branch, and use the standard simplify if the tree had more than 1 branch. Is there an other approach I could use?
Thanks in advance
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
© 2024 Created by Scott Davidson. Powered by