So it has the same cross-section through the thickness (into/out of the screen)? Then you should be able to use the Sweep method. It basically meshes the upper face and then would be extruded into the third dimension. With this, quads would become Hexas and triangles become prisms. Look at the documentation for more information, but it is pretty straightforward.