I need to join two set of closed curves to make region union. Is there a more simple solution

I’m basically trying to make a tower design.There are two sides so I need to make a region union to solve intersecting spaces but I couldn’t find a simple way to merge two trees this way.

assuming you have all your curves in random order inside a Curve parameter, you can use something like this to divide the list in branches (in such a way each branch contains only curves at the very same Z level), then perform a region union on this list you just got (in such a way only curves in the same branch -same Z- gets “RegionUnited” together)

Sort_by_Z_then_RegionUnion.gh (10.0 KB)


Thank you very much! It worked with my code. :grinning:

1 Like