Mesh2Cad: a free Python tool that turns a bracket-style STL back into editable STEP, OpenSCAD or FreeCAD

@curator · Nov 20, 2026 · 33 views · via Hackaday ↗
Difficultyeasy
Costfree

If you have ever downloaded a part off Printables, needed one hole moved, and ended up re-modeling the whole thing from scratch, this is for you. Mesh2Cad is an open-source Python tool, installed with pip, that reads a mesh and rebuilds it as proper parametric CAD: STEP, OpenSCAD, CadQuery, or a FreeCAD macro that regenerates the solid.

What makes it usable rather than a party trick is that it checks its own work. It segments the triangles into planes, cylinders and cones, rebuilds a solid from those, and only hands you a result if it matches the original mesh within tolerance, so a bracket comes out as a few dozen clean faces instead of thousands of triangles. The limit is just as clear: boxes, brackets with holes, fillets and chamfers work, organic shapes and sculpted curves do not. Try it on a mount or a spacer first, not a figurine.

#stl#cad#freecad#openscad#python

1 💬 0 comments

0 comments

Log in or sign up to join the discussion.

Report this

Tell the moderators what is wrong. Spam, stolen content, unsafe advice, scams.