Create mesh with Lathe

Miscellaneous Forums/General Discussion/Create mesh with Lathe

I could figure this out myself with a piece of paper and a bit of time, but there seem to be all sorts of little bits and pieces that people probably have all sorts of tricks to deal with.
I tried Google to no avail, and I also tried searching a few specific web sites (GameDev.net, for example) to no avail.
Maybe you know somewhere nice...

What I am trying to do is create all the components of a 3d game level by taking 2d profiles of half of each platform and then running a little Lathe technique on them to produce manageable 3d shapes.
(Later additions would involve an extra profile of the top of said boards, which acts to control some specific elements of the Lathe function (variance in distance of points from the center on the x/z axis) and to punch holes in stuff, once again keeping it manageable to get physics working automagically).

This shouldn't be too hard once the first bit is in, but there seem to be all sorts of little things which can complicate matters with that first part, so it would be nice to even just see (even uncommented!) code for a simple lathe algorithm to get me started...

...Even a few little pointers would be wonderful; I'm mostly just a bit anxious about stumbling back into 3d (and a new engine, as well!) after all this weird scripting stuff I've been doing lately :)

Rhino seems to do this by dividing the line up into segments or points and then creating a center axis point and rotating those points around said axis point in measured steps as specified by user... more points = (obviously) smoother... etc. more points would also increase computational time.