Smooth Extruded Mesh?

Hello,

I'm using the code from the procedural extrusion example:

Procedural Mesh Extrusion

I'm using graphics primitives to draw arbitrary shapes such as the one pictured below.

I'm wondering if anyone knows how to go about smoothing the resulting mesh.

alt text

Hi - you need to calculate the tangents of the mesh. That took away a lot of my pain with procedural meshes