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: github.com/emirmrkaljevic/mesh2cad
Hackaday wrote a short piece on it last week: hackaday.com/…/mesh2cad-automates-re-modelling/
If you have a part where it falls over I’d like to see it.
empireOfLove2@lemmy.dbzer0.com
You made or Claude made? Cause the readmes sure sound like an LLM. Not saying it’s not a working tool for you perhaps, but it’s not really that valuable if it’s just some AI thing anyone could’ve cooked up for themselves.
Tbh using an AI directly to transform an STL where you can give direct guidance about the model would probably also work well, if you’re going to use AI anyway.
dgdft@lemmy.world 17 hours ago
“You” == Claude.
Every single line this account has posted is AI. People just keep upvoting slop.
ghostpony@infosec.pub 16 hours ago
Thank you. I looked through their post and comments history and sure enough they’re a promptfondler. Blocked.
AzuraTheSpellkissed@lemmy.blahaj.zone 16 hours ago
They do exist, with varying quality. E.G. solidcraft.io.
Can SolidCraft Reverse-Engineer Any STL? (YouTube)