Grasshopper

algorithmic modeling for Rhino

Hi all!
I want to modify the first list in order to have the same structure of the second one. Exactly the same (graft doesn't work) :/ .

Any help would be much appreciated!

Thanks,

Francesca


Views: 442

Replies to This Discussion

I think you can use the Unflatten component. Plug the tree you want to change into [T] input and the tree which has the layout you want into the [G] input.

If you don't have the other tree, but instead need to graft it in a non-standard way, you can still use Graft and then run the result through a Path Mapper with the mapping {A;B} -> {B;A}

Or replace paths is a useful one.….three inputs , Data, Find path, replace path).

Graft the first list (this graft connects to data)... Connect tree statistics also to the graft to get the paths (the list of paths connects to find).... Then also decompose list of paths, use list item the choose last index (-1) then first (0)..... Reconstruct branch... Then connect that to the replace (flattened).
An example of what I just described might be in this file inside the cluster (treesurgeon.gh). http://www.grasshopper3d.com/xn/detail/2985220:Comment:1708863

Thanks you both !

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service