Stretch brep - keep top

I have created a brep using the fragment patch tool from two lines. I would like to extend the long sides of the brep but keep the falls of the top & bot surface and essentially maintain the thickness.

Ideally I would like to specify the stretch distance, or it could just be stretch to a vertical surface.

I’ve tried deconstructing the brep and offsetting the curves, but could never match the slope of the top surface.

stretch_brep.gh (21.8 KB)

Any ideas on how to achieve this? Is the brep too complex? I’d rather avoid simplifying it, if it will become less accurate.

This was a similar topic but I did not understand how to get it to work.

I have read it x times, but do not understand what you want to achieve. maybe add a drawing what it should look a like when done?
regards, Eef

Hi Eef,

Extrude/stretch the solid to something like this, using the contents in the gh file.

And like this, an example with a simple solid:

Note: It is not a constant crossfall at both sides, hence the X% & Z% fall direction. High likely not constant fall along the same side, eg fall X% varies along that same side

I hope I did understand correctly.
What about scale NU



stretch_brepEW.gh (26.2 KB)

Thanks Eef, Your solution is what I am looking for.
However, it appears that the stretched brep doesn’t maintain the level of the original.
Final destination of the brep will be in revit.

Is it possible to stretch and keep the same level of the original?

You can go as close as possible. Because the surface is not planar (see image) there will always be a deformation with stretching, scaling, expanding, the surface. Either the z values will change (on some sides of the surface) and/or the angles (fall) will change. (unless there is some mathematical insight I am not aware of :wink: )

  • The ways I probably would approach this:
    a. Take the original curves. Find the best connecting line in between them (connect middle of curves; take the end curves (you made) and tween them, etc.) And use this as guiding curve to project the curves on the vertical surfaces.
  • extend the curves, to where you need them.
  • manipulate the curves until they are the closest to what you want (moving up or down, rotate to correct angle,)
  • Ruled surface (as I do in the image)
  • Extrude

Regards, Eef

stretch_brepEW2.gh (31.4 KB)

I am able to work with your first solution. If only my inputs were planar I would not have to make as many adjustments.

I will give your curve manipulation technique a shot. Maybe I can refine from that.

Thanks again Eef,