Skip to content

How do I perform the polygon extrusion operation? #8321

Answered by sloriot
ankofl asked this question in Q&A
Discussion options

You must be logged in to vote

The complete example you mentioned is here.
Here is the output clipped so that we can see what is going on.

The input (in blue) is a cube with a missing face. Topologically speaking, the extrude function will take a first copy mesh, then a second copy, reverse its orientation and stitch with a triangle strip the first copy and the reversed copy.
Top and bottom functors will act on the geometry of the vertices of the two copies. In the case of the example, the vertices are moved along the normal to the surface, in opposite directions for the two surfaces, thus the input being sandwiched by the output.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ankofl
Comment options

Answer selected by ankofl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants