Maintain offset distance between objects

Hello!

I have a slope and a closed brep underneath it. I am trying to make a script that if the object underneath the slope changes, the slope always maintains unit 2 distance from it in every direction. I tried to do this with an offset and points but im not getting the result i want.

Ideally I want to use this for more complex slopes where it changes shape ‘locally’ relative to where the brep underneath the slope changes it shape. Maybe the slope should be divided into many control points to achieve this? I hope someone can help me!

parametric-box-and-slope.gh (12.4 KB)

Hi, is this what you mean?

(i baked the geometry for better illustration)

The only thing I did was to replace “Surface from Points” with “Patch”. And, “flattening” the data from the Merge component.

I noticed that the points you were producing are not organized as grids. They are just random points created with PopGeo. And, thus, Patch is the component that can do it.
parametric-box-and-slope_1.gh (16.2 KB)

Edit: Just realised you probably wanted a gradual slope not just the offset shape.


split.gh (12.6 KB)