SofaExporter is a SOFA plugin exporting STL and OBJ.
Example of use:
import SofaExporter
Classes STLExporter VisualModelOBJExporter
Classes
STLExporter
VisualModelOBJExporter