Three dimensional solids with a constant cross section can be easily drawn by drawing a copy of the cross section in the background and joining up corresponding vertices.
To draw a three dimensional solid with the cross section below:
Draw a copy of the cross section in the background:
Now join up the vertices.
The solid can be made more realistic by removing background edges to give the result below.