pyvista.OBJReader

class OBJReader(filename)

OBJ Reader for reading .obj files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_trumpet(load=False)
>>> filename.split("/")[-1]  # omit the path
'trumpet.obj'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(cpos='yz', show_scalar_bar=False)
../../../_images/pyvista-OBJReader-1_00_00.png

Methods

OBJReader.read()

Read data in file.

Attributes

OBJReader.reader

Return the vtk Reader object.