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: (14.8 KB)

Intersection>Shape>Region Union.


Holy moly, that worked! Thank you, lifesaver!


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

1 Like