Most of my printer parts only exist as STL, and every time I wanted a hole 2 mm bigger or a plate a bit thicker I ended up remodeling the whole thing by hand. So I wrote mesh2cad. It finds the planes, cylinders and cones in the mesh and writes a STEP file plus a CadQuery or OpenSCAD script (or a FreeCAD macro) with the dimensions as named parameters at the top, so you change one number and rebuild.

It works on plates, brackets, boxes with holes, bolt circles, slots, bosses, countersunk holes, that kind of thing. It does not do organic or sculpted shapes or scans. It checks the rebuilt solid against the original mesh and reports the deviation, and if the fit is bad it refuses to write the script instead of making something up.

Free, MIT, Python, pip install mesh2cad. Code and before/after pictures: https://github.com/emirmrkaljevic/mesh2cad

Hackaday wrote a short piece on it last week: https://hackaday.com/2026/11/19/mesh2cad-automates-re-modelling/

If you have a part where it falls over I’d like to see it.

  • EscanortheArrogant
    link
    fedilink
    English
    arrow-up
    5
    ·
    19 hours ago

    Thanks, I have been looking for something like this, keep getting caught in the same remodeling loop.