Offsetting surface only in one direction

Hi every one

i have a problem. I have many surfaces that are not rectangle and are different. I need these surfaces to be smaller 5mm only in vertical edges. What i wanted to do is this. Making a loft with vertical lines and shifted one and subtract from the main surface.I tried many ways like offset or move the vertical lines but because the main surface is not rectangle and have sloped edges, i cant subtract the loft surface. Could you please help me for this?

It might help to share your files…

yes sure. Here they are.

you can see different shapes i have.

offset 5 mm.gh (17.9 KB)

curves.3dm (100.0 KB)

Here’s one way to do this:

Note the use of the dot product to find the vertical edges.

offset 5 mm 01.gh (15.3 KB)

Thank you so much for your help. But why it is not working in my file?

Do your pipes have flat ends?

yes. But see, it seems top line is not in the main plane

I see, in this case the pipe would need to be extended.

unfortunately not worked. because of these parts…

and still flat edge is not working.

extending will cause this issue

I know :grin:

You could extend all curves on both ends by at least 5 units, offset the vertical segments and then create e boundary surface. This should work unless your surfaces have very narrow parts.

Thank you for your help. It will not work unfortunately. I will try another way :folded_hands:

Are all your surfaces / polylines planar?

i sent my file before. Although it was one part only and all are more. But that file is a good part of it. and yes they should be planar

this is all surfaces.

these surfaces are sandwich panel and we have some clash with main STR and i should prepare a 10mm gap vertically. Means all line should be 5 mm shifted vertically

I know. But I’m now in a train and not at my computer so I’m just asking.