SofaExporter.VisualModelOBJExporter

class SofaExporter.VisualModelOBJExporter

Export all VisualModels of a simulation with the .obj format

Will export a binary or ascii file depending on the binary flag of VisualModelOBJExporter Will auto-number the exported files

Example

import Sofa
import SofaExporter

# Create a new node
n = Sofa.Core.Node("root"")

# Add STLExporter
n.addObject("VisualModelOBJExporter", name="exporter", ...)

# writes down the stl file
n.exporter.write()