Plotter.import_obj#
- Plotter.import_obj( ) None[source]#
Import from .obj wavefront files.
Added in version 0.44.0.
- Parameters:
See also
pyvista.OBJReaderRead OBJ file as a mesh.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> download_obj_file = examples.download_room_surface_mesh(load=False)
>>> pl = pv.Plotter()
>>> pl.import_obj(download_obj_file)
>>> pl.show()
Import an .obj file with a texture.
>>> from pathlib import Path
>>> filename = examples.download_doorman(load=False)
>>> pl = pv.Plotter()
>>> pl.import_obj(filename)
>>> pl.show(cpos='xy')