pyvista.BYUReader

class BYUReader(filename)

BYU Reader for .g files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_teapot(load=False)
>>> filename.split("/")[-1]  # omit the path
'teapot.g'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(cpos='xy', show_scalar_bar=False)
../../../_images/pyvista-BYUReader-1_00_00.png

Methods

BYUReader.read()

Read data in file.

Attributes

BYUReader.reader

Return the vtk Reader object.