I'm not quite sure if this forum is the right place for this question, please forgive me if it is not . I have started FreeCAD lately as a preprocessor for some FEM work. I have some STL-files (order 90000 facets) that are too large to comfortably import in the FEM software. Hence I created a simple script:
Code: Select all
import Mesh
mesh = Mesh.Mesh('myfile')
mesh.decimate(0.1, 0.5) #tolerance=0.1 and reduction=50%
mesh.write(Filename='myreducedfile', Format='STL')
Hope you can help!