Boundary from set of rectangles — Grasshopper

I’m trying to get a single boundary curve that separates inside and outside. The issue I have is trimming away the curves where some rectangles overlap. Any ideas on how to achieve this?

My set of rectangles:

Overlapping issue:

Desired outcome:

Simplified script ready for troubleshoot:
MergeRectanglesOverlapIssue.gh (14.8 KB)

Intersection>Shape>Region Union.

2 Likes

Holy moly, that worked! Thank you, lifesaver!

Solution:

You can get rid of the Boundary component in between! It’s unnecessary.

1 Like