Skip to content
CuteGuy☣️· @cutetoxicguy · X·· 14 d agoFeaturedAI score78

CADMAGEDDON reconstructs mechanical-part meshes as editable CAD programs

Editorial summary

CADMAGEDDON uses a Qwen3.8-27B agent to reconstruct mechanical-part meshes as editable CAD programs containing sketch, extrusion, hole, and cut operations. The project supports CadQuery and FreeCAD backends and compares rendered reconstruction results on multiple CAD datasets. The code runs on Linux and macOS with Python 3.11; local inference with the FP8 configuration requires approximately 30 GB of model weights and 48 GB of GPU memory.

Why it matters

CADMAGEDDON demonstrates a process for recovering sketch, extrusion, hole, and cut operations from mechanical-part meshes, and advises checking reconstructed dimensions before manufacturing replacement parts.

Original text

You have a mesh of a mechanical part. What you actually need is a CAD model where you can change the hole diameter, move a cutout, or thicken a wall.

CADMAGEDDON turns that mesh into an editable CAD program. It tries to recover the operations that make up the part: sketches, extrusions, holes, and cuts. You can inspect the program and change a dimension without moving a cloud of vertices by hand.

🛠️ A Qwen3.8-27B agent drives the reconstruction. It can fit planes and circles, take cross-sections, build a candidate part, and measure the mismatch against the original mesh. That feedback lets it decide whether to adjust the geometry or try another operation. The repo supports CadQuery and FreeCAD backends.

The authors compare rendered reconstructions across several CAD datasets. Their side-by-side examples are worth zooming in on, especially where a part has holes or features on multiple faces. If you plan to manufacture a replacement, check the recovered dimensions against the original first.

The code runs on Linux and macOS with Python 3.11. For local inference, the README describes an FP8 setup with roughly 30 GB of model weights on a 48 GB GPU.

Code: github.com/kulibinai/cadmaged…

#CAD #3DModeling #ReverseEngineering #OpenSource

Source: CuteGuy☣️ · x.com