pyvista.OBJReader

Contents

pyvista.OBJReader#

class OBJReader(*args, **kwargs)[source]#

OBJ Reader for reading .obj files.

Examples

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

Methods

Attributes