pyvista.PNMReader

Contents

pyvista.PNMReader#

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

PNMReader for .pnm files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_gourds_pnm(load=False)
>>> filename.split('/')[-1]  # omit the path
'Gourds.pnm'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-PNMReader-1_00_00.png

Methods

Attributes