Generate surface around shapes

Hello! Sorry for the very generic title, but I’ve got to solve a problem that is very difficult to describe but very easy to show.
I’d like to find a way, using grasshopper, to generate a parametric surface based on a series of given shapes as in the attached images.
Mind that the shapes must not touch each other.

Can anyone think of anything?
Thank you!

Another example to clarify:

Hi @Edoardo_Luigi_Giulio,

There are different ways to go about this, here is one way that may work for your needs.

Model Space:

Graph Space:

Essentially just offsetting rectangles by a certain distance, creating a region from this offset, then negatively offsetting the new region curve to the original location again.

Hope this helps you,

Cheers! (9.3 KB)

1 Like

That’s great! Thank you so much!

You’re welcome!

Another approach: (16.0 KB)