algorithmic modeling for Rhino
As a result of a request please find a series of examples for using the Path Mapper component.
The First installment of this is showing the Path Mapper imitating some already existing components. Flatten, Graft, Simplify and Flip Matrix. There is also an additional example showing Integer Divide to which there is no existing component.
For those uninitiated in the dark arts of pathmapper the component can be found on the Sets Tab> Tree Section with the icon of a red cube. Section 8: The Garden of the Forking Path of the Grasshopper Primer 2nd Edition is dedicated to the Tree Structure implemented in GH v0.6. There is an extensive Help file accessed from the 'right click' Context Menu.
UPDATED to correct an error in the Flip Matrix demonstration path_count should be item_count. Plus reflecting the change of the Simplify Component and Additional demonstration of grouping without the Path Mapper
Updated: 2011-04-20
Replace Branches
Not sure if it's right to include this here as its actually encouraging you not to use the Path Mapper, but sometimes there are benefits to being able to keep the definition free from restrictions like the Path Mapper. When a data structure changes the Path Mapper is unable to adapt without user intervention. This is demonstrated in the two Grouping examples above. The Path Mapper method would need the user to manually change the Integer 6 if they ever increased the V Divide, where as the Replace Branches Component will simply update based on its inputs.
I hope to follow this up with some more.....
Tags:
Thank you.
This is what I wanted. Thanks again for excellent share.
Thank you, Danny.
Hi Danny,
thanks a lot!
I have a different problem I could not find out a nice fix. Maybe you know how to...
In one of the lists I have a null-item. When offsetting the data tree of the null results is different (of course).
I need to match the treestructure though with a different list. If I map it (A;B;C;D;E)-->(A;B;C;D) the null-item will be droped and i can´t match it. Any better solution than the shown for this problem?
Thanks a lot,
Phillip
The method you've got is the right way to go about doing it but you've missed an opportunity to do it with one instance of the Path Mapper.
The Path Mapper is able to apply several Lexical mappings at once, rather than separate these into two Path Mappers you just need to go to the next line in the Editor window.
Because Path Mapper is looking for {A;B;C;D;E} in the first line it will ignore all instances of {A}, {A;B}, {A;B;C} etc. So you can put in any additional ones below.
But did you actually need to use the Path Mapper here, would GH not data match unless you did it?
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