pyvista.Plotter.export_obj#

Plotter.export_obj(filename)[source]#

Export scene to OBJ format.

Parameters:
filenamestr | Path

Filename to export the scene to. Must end in '.obj'.

Examples

Export the scene to “scene.obj”

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(pv.Sphere())
>>> pl.export_obj('scene.obj')