Convert STEP file type to STL
问题 I want to convert a STEP file into an STL file format using Python. I have looked online and it looks like the best option is to either use FreeCAD or OpenCascade (OCC). However, I am a beginner and do not know where to start from. I did some search online and found this out (a code to convert STEP to OBJ file). Are there any python examples from FreeCAD (based on OCC) to convert STEP files to STL? Where should I start? 回答1: Here's a quick bit of code to start out: import FreeCAD import Part