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
Thats it folks! Thanks for reading, I hope you find it useful.
A big shoutout of thanks to the creators of Trimesh and GMSH
Congratulation for this page !!
I am a PHD Student from France
Thank you for your nice comments!