Revert to Tree Structure after Solid Union on Branches?

Hi guys,

I am wondering how this data management problem is to be tackled in gh.

  • I have an original tree.
  • Shift it to group geometry by 6 branches.
  • Perfom a solid union. This causes that what was once 2 items, now becomes 1. As the number of items vary, I cannot use match tree or unflatten tree.

I wish to go back to the initial tree structure. (295.9 KB)

after solid union what would be the previous path? I just add {0;0;0;1;0} {0;0;0;2;0} and also you lost 4 branches. (302.1 KB)

I think this works just fine. Thank you!