Merge regions only with outermost line segments

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

  1. Offset x
  2. Union
  3. Offset -x

Merge_Regions.gh (12.6 KB)

5 Likes

Sweet :exclamation: :+1:

By the way, these curves are very far from the origin.

1 Like

Simply elegant!!! :clap: 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