pyvista.STLReader

Contents

pyvista.STLReader#

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

STL Reader for .stl files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_cad_model(load=False)
>>> filename.split('/')[-1]  # omit the path
'42400-IDGH.stl'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-STLReader-1_00_00.png

Methods

Attributes