Export 3D curves


I am hoping to export curves that I have drawn in 3D using ofPolyline straightSegmentPolyline;

I have looked at ofxDxfExport but that is 2D only.

Should I export as an .obj using ofMesh? I presume I would have to draw my curves differently, as a GL_LINE_STRIP?

The aim is to get the curve so I can open it in a convention CAD program and work on it from there…


I used the ofMesh and mesh.save("test.ply") but I only get points, not lines.

Can I not save 3d curves?