In this brief tutorial you will learn how to convert any STP, STEP, IGS, IGES, BREP 3D model file to a STL mesh with python in just a few lines of code.

Some parameters can be tuned and useful information about the resulting mesh can be gathered as well. The script supports multithreading for faster results.

It works using the Trimesh and GMSH libraries. Make sure you install them both with

pip install trimesh[easy]
pip install gmsh-sdk

The github repo can be found here: https://github.com/marcofariasmx/STP-STEP-IGES-BREP-to-STL-Python-converter

The end result in your project directory should look like this

Result after exporting STL mesh

Thats it folks! Thanks for reading, I hope you find it useful.

A big shoutout of thanks to the creators of Trimesh and GMSH

1 thought on “How to convert any STP, STEP, IGS, IGES, BREP 3D model file to a STL mesh with python

Leave a Reply

Your email address will not be published.