MWE : Extrusion

Take a 2D shape and make it 3D:

shape=DiscretizeGraphics@RegularPolygon[5]

RegionProduct[shape,Line[{{0.},{1.}}]]

Extrusion along a curve

There is a good discussion about extrusion along curves on StackExchange:
https://mathematica.stackexchange.com/questions/3051/extruding-along-a-path