STLReader#
- class STLReader(*args, **kwargs)[source]#
STL Reader for .stl files.
Wraps vtkSTLReader.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_cad_model(load=False)
>>> Path(filename).name
'42400-IDGH.stl'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()