/STP-STEP-IGES-BREP-to-STL-Python-converter

STP-STEP-IGES-BREP to STL Python converter

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

STP-STEP-IGES-BREP-to-STL-Python-converter

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

Import&use

Visualize the mesh

Import&use

You can get some useful information after the conversion is done like mesh volume, bounding box volume, surface area etc (default output in mm)

Import&use

Voilà! The new mesh is exported

Import&use

Import&use

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