I want to merge regions using only the outermost line segments, as shown in the image below.
Merge_Regions.gh (6.5 KB)
The attached Grasshopper file internalized three groups of regions for testing. I might be able to achieve this by extending each segment lines, breaking segments, filtering, sorting, and joining them. However, my initial idea seems complex, so I’m wondering if there is a more efficient way to merge these regions. Thank you.
Hi, you can do something like that
- Offset x
- Union
- Offset -x
Merge_Regions.gh (12.6 KB)
5 Likes
Sweet

By the way, these curves are very far from the origin.
1 Like
Simply elegant!!!
Thank you so much, @anon39580149!
Yeah, they’re taken from much larger drawings. Thanks for the warning!
Worked fine in this case but if distance causes problems, here is a simple way to move geometry to the origin, do something with it (cyan group) and move it back using the reverse vector.
Merge_Regions_2023Aug23a.gh (14.1 KB)
1 Like