I wrote a little macro today that takes a polygon mesh created with AutoCAD's surface commands (rulesurf, revsurf...), and creates 3D polylines that run through the vertices of the mesh. These 3D polylines can be turned into toolpaths with my g-code macro. Attached is the macro and some sample meshes, all in the zip file.