extrusion

hello.
I have some 2d shapes that I would like to extrude for a depth, and the result must be a 3d solid.
The 2d shape is a bidimensional set of 2d vertexes.
How i can create the 3d vertexes , the triangles and indexes of the triangles ?
I would use only opengl and c++ math code nor glut or glew ecc....
Thanks.

hello.
I have some 2d shapes that I would like to extrude for a depth, and the result must be a 3d solid.
The 2d shape is a bidimensional set of 2d vertexes.
How i can create the 3d vertexes , the triangles and indexes of the triangles ?
I would use only opengl and c++ math code nor glut or glew ecc....
Thanks.

It's very easy. Just make a copy of the 2D shape and connect the edges between them. Every edge pair will form a quad, or two triangles if you want.
You don't need OpenGL to do this either.