Really simple STP-STEP-IGES-BREP to STL Python converter script
Blogpost with embedded jupyter notebook: https://marcofarias.com/how-to-convert-any-stp-step-igs-iges-brep-3d-model-file-to-a-stl-mesh-with-python/
Some parameters can be tuned and useful information 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
Simply run the following lines of code
You can get some useful information after the conversion is done like mesh volume, bounding box volume, surface area etc (default output in mm)
Example 3D model files downloaded from Grabcad
For more information, ideas and tutorials visit marcofarias.com
And a big shoutout of thanks to the creators of Trimesh and GMSH