pyvista.PLYReader

class PLYReader(filename)

PLY Reader for reading .ply files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_lobster(load=False)
>>> filename.split("/")[-1]  # omit the path
'lobster.ply'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-PLYReader-1_00_00.png

Methods

PLYReader.read()

Read data in file.

Attributes

PLYReader.reader

Return the vtk Reader object.