Library to make reading, writing and modifying both binary and ascii STL files easy.
Actively maintained. Last release 2 weeks ago, commits in 12 of the last 26 weeks. A safe choice.
pip install numpy-stlA fast library for reading, writing, and modifying STL files, powered by NumPy. Every mesh operation uses vectorized array math for speed.
Stanford Dragon — 871,414 triangles loaded in 0.63s, rendered with matplotlib
Quick Start
pip install numpy-stl
from stl import mesh
# Load an STL file (auto-detects binary/ASCII)
your_mesh = mesh.Mesh.from_file('model.stl')
# Inspect
print(f'{len(your_mesh)} triangles')
print(f'Bounding box: {your_mesh.min_} to {your_mesh.max_}')
# Save
your_mesh.save('output.stl')

