# Extrude surface to one line in different shapes

Hi all !
How extrude surface to one line and get solid?
In this .gh - simple.
but surface can be of different very shapes ,the shape changes many times. One of the edges of the form is always raised, as in this minimal example.
.gh and screen attached
extrude.gh (11.1 KB)

Something like this?

extrude_re.gh (13.6 KB)

You might be on to something there @HS_Kim, but I think your model may be too specific to this example and doesnâ€™t handle the more general case of an arbitrary surface. The problem could be presented as more of a â€śblack boxâ€ť, like this, where the shape of the surface is â€śunknownâ€ť:

extrude_to_line.gh (2.3 KB)

@Joseph_Oster @HS_Kim
In attach - real .gh and real taskâ€¦
Shape changes, very different.need a universal solution.
maybe I did not correctly formulate the question. It is necessary to make a solid over the surface and along several lines above it.

â€śseveral lines above itâ€ť is indeed a very different problem! I understood that the surface may have more than three vertices, but â€śseveral linesâ€ť makes it a whole new ball game!! I played with the code in your first post and am not convinced there is a â€śuniversal solutionâ€ť to this.

These donâ€™t help at all.

So you want a â€śuniversal solutionâ€ť that handles both of these examples?

extrude_to_line.gh (2.3 KB)

extrude_to_line2.gh (2.8 KB)

I donâ€™t see this happeningâ€¦

line above the surface not intersect - this necessarily. and line above the surface sort to â€śxâ€ť coord about surface plane. thanks for reply, perhaps universal answer donâ€™t exist.

The geometry in extrude_to_line2.gh is extracted directly from your fasade_extrude_hard.gh model. Those lines â€śaboveâ€ť the surface donâ€™t intersect.

Here is something that demonstrates the ambiguity of your goal:

extrude_to_line3.gh (5.8 KB)

And this:

1 Like

for each plane you need to configure separately - if you change surface. â€ślines project to surface donâ€™t intersectâ€ť - this write.

@Joseph_Oster thanks . this case maybe help me.
Maybe Iâ€™ve used the wrong approach to solving this problem.
i will thinkâ€¦