Python- STL File Reduction

2.7k Views Asked by At

I want to make a python script that reduces number of triangles in a STL file while preserving shape in python. Is there some module which can do this operation?

1

There are 1 best solutions below

0
On

PyMesh has the ability to split and collapse edges, which can be used to decimate a mesh, as seen on their website (with a code example found here, specifically the fix_mesh function).

Here is a Stack Overflow post which explains how to decimate using the VTK library.