I have this hypothetical case of multiple curves that I need to cull based on whether they intersect with any other curve. To do this I flatten the tree, but then I need to go back to my previous structure. Problem is some items have been culled, and thus the nunberes of items at the start is different than the one at the end. so unflatten tree or match tree cannot be used in this case.
What is the appropriate way to go back to my tree structure?
Cull Multiple Curves.gh (12.4 KB)