CADMAGEDDON: turning a mesh back into an editable CAD part

A mesh shows the shape of a part but not how it was made. CADMAGEDDON, a paper submitted to arXiv on 17 November 2026, tries to recover that: it reads a mesh and writes a CAD program of sketches, extrusions, revolves and holes that a CAD tool can rebuild and you can edit.
The problem it starts from
Much of the geometry designers receive is a mesh. An STL from a supplier, an OBJ from a download site, a scan, an export that lost its history on the way. A mesh is a set of flat facets. It has no hole diameter to change, no wall thickness to adjust, no profile to move. Its accuracy stops at the size of its triangles.
Turning it back into clean geometry is mostly manual work today. You trace sections, rebuild profiles, extrude them and check the result against the original. The authors also point at a second issue: many of these parts are confidential, and their owners do not want to upload them to an outside service.
What CADMAGEDDON does
The system splits each feature into two decisions. The structure, such as which plane to sketch on, which profile to use and whether to extrude, revolve or cut, is chosen by a vision-language model looking at rendered views. The numbers, such as a radius or an offset, are not guessed by the model. Geometric tools fit them to the mesh.
In practice the tools analyze the mesh first. They find planes, cross-sections, hole stacks, lines and arcs, and give each one a name. The model then builds the part feature by feature by naming these entities, deciding at each step what to build next and what to correct.
The output is a CadQuery program, a Python script that builds the solid; CadQuery can export it to STEP. The agent can also write native FreeCAD programs that build a PartDesign feature tree, so the result opens in an existing CAD workflow.

It runs on one open-weight model, Qwen3.8-27B. With 8-bit weights it fits on a single 48 GB GPU, and the abstract says it can run on current-generation laptops. Nothing has to leave your machine.
On five benchmarks of CAD parts, the authors report higher reconstruction quality than earlier methods, including systems built on frontier models. On one of them, MCB, its match score (GMS) rose from 0.705 to 0.818 and its volume overlap from 0.862 to 0.933.
What it cannot do yet
The authors list the limits plainly, and they matter for anyone outside mechanical engineering.
- It expects a clean mesh of a single part. Real scans and assemblies of several parts are left to future work. All the test parts were derived from CAD models, not from real scans.
- Small or repeated details get lost. The paper notes 0.7 mm walls left out of a reconstruction, and a part with 51 through-holes of which at most 2 were built.
- It is slow compared with single-pass models. The paper gives each part a budget of 30 or 60 model calls, depending on the benchmark.
- The comparison with frontier models uses scores reported elsewhere, on different inputs and subsets, which the authors flag themselves.
What it could change for designers
The useful idea is the split between seeing and measuring. The model decides what kind of feature it is looking at, and fitting supplies the dimension from the geometry. That is close to how a careful person rebuilds a part by hand, and it is a reasonable test for any AI tool that claims to output CAD: ask where its numbers come from.
For product and furniture designers, the near-term use is hardware and machined parts. A bracket, a leg fitting or a connector that arrives only as an STL could come back as a STEP solid with real holes and faces, ready to import into Rhino and edit there. For interior and architecture work, where most downloaded models are meshes of soft or curved objects, it does not help yet.
Local execution matters too. A studio working on unreleased products can keep the files in-house, on hardware a small office can buy.
The gap that remains is design intent. A rebuilt solid is a better starting point than a mesh, but you still decide which dimensions should drive the part before it behaves like a model you designed.
Montea works from the other direction, from a photo rather than a mesh. Montea's models are built by AI, ready to edit: polysurfaces and SubD on named layers in Rhino, faces and groups in SketchUp, with STEP among the formats. The photo to Rhino model page shows what that file looks like. If you already have a mesh and need another format, the 3D converter is free, and the FAQ explains how sizes are set.
Read the paper: arxiv.org
The code repository is listed at github.com.
Have a photo of the piece you need? Model a Photo