CADMAGEDDON: High-Fidelity CAD Reconstruction with Local Inference
Oleg Pavlov, Nikita Gavrilov, Soslan Kabisov, Gennadii Savrasov, Andrey Kuznetsov, Anton Konushin, Dmitrii Zhemchuzhnikov
Lomonosov Moscow State University · Innopolis University · FusionBrain Lab
Published November 17, 2026 · on the feed November 18, 2026 · ▲ 10 · arXiv 2611.22563
The abstract
CAD practitioners often work with proprietary parts that they are unwilling to share with external services. For individuals and small companies, bringing this work in-house also requires computational resources they can afford. We introduce CADMAGEDDON, an open-source agent that reconstructs editable CAD from meshes and can run locally on single-GPU systems and current-generation laptops. The method decomposes this complex task into a chain of simple visual decisions about what to construct and what to correct. Geometric tools support precise construction, allowing the agent to focus on visual reasoning. Using the mid-sized Qwen3.8-27B model, CADMAGEDDON outperforms prior approaches, including systems based on frontier models, in reconstruction quality on all the main benchmarks. CADMAGEDDON integrates with FreeCAD, bringing its reconstructions into practitioners' existing CAD workflows. Code: https://github.com/kulibinai/cadmageddon
The Brief
1:40A short podcast summary of the paper. Written and voiced by AI.
Transcript
CADMAGEDDON. High-Fidelity CAD Reconstruction with Local Inference. By Oleg Pavlov and six others, from Lomonosov Moscow State University, Innopolis University, and one other institution. Published on the seventeenth of November.
People who work in CAD often handle proprietary parts that they are not willing to send to an external service. For individuals and small companies, keeping that work in-house has a second requirement: the computing resources it needs must be affordable. A tool that reconstructs editable CAD has to respect both constraints: the data never leaves the user's own machine, and that machine has to be one a small operation can pay for.
CADMAGEDDON is an agent that reconstructs editable CAD from meshes, and it can run locally, on single-GPU systems and on current laptops. Its central move is decomposition. A complex reconstruction task becomes a chain of simple visual decisions: what to construct next, and what to correct.
The agent does not have to do the geometry precisely by itself. Geometric tools support exact construction, which leaves the agent free to concentrate on visual reasoning. The output also lands where practitioners already work, because CADMAGEDDON integrates with FreeCAD and brings its reconstructions into existing CAD workflows.
The model behind it is mid-sized: Qwen3.8-27B. With it, CADMAGEDDON outperforms prior approaches in reconstruction quality on all the main benchmarks, and that includes systems built on frontier models. On these results, reconstruction quality does not have to be traded away in order to keep the work local.
Splitting the work this way is what lets a modest model compete. The agent only has to judge what it sees, while the tools take care of precision, and the whole loop stays on hardware a small shop might already own.
The deep dive
6:12A longer episode, written from the whole paper. Written and voiced by AI.
Transcript
CADMAGEDDON. High-Fidelity CAD Reconstruction with Local Inference. By Oleg Pavlov and six others, from Lomonosov Moscow State University, Innopolis University, and one other institution. Published on the seventeenth of November. This is the long version: the whole paper rather than the abstract.
Much of the geometry engineers need exists only as a mesh: an export from a legacy system, or a file stripped of its feature tree on the way from a supplier. A mesh carries no sketches, no extrusions, no holes, nothing an engineer can edit. Rebuilding the part as an executable, feature-based CAD model is mostly done by hand. An automatic replacement needs two things at once. It must be accurate on real mechanical parts, not only on the sketch and extrude shapes that dominate training data. And it must run on a single machine, because these parts are often proprietary and their owners may be unwilling to upload them to an outside service.
Two families of earlier method fail in opposite ways. Single-pass learned models translate a point cloud or an image into CAD code, and they run locally. But they are trained on programs whose numbers are quantised or rounded, and their precision is limited by how well a language model can predict numerical values. On real mechanical parts they lose much of their accuracy. Direct geometric fitting recovers values as precisely as the mesh allows, but it can misread the design intent, and it leaves roughly a quarter of the parts without a valid reconstruction. The move here is to split every feature in two. Its numbers should be fitted to the target, not predicted. Its structure should be decided visually. Interactive scan-to-CAD software already works this way, with an engineer choosing each feature and fitting supplying its values. CADMAGEDDON puts a vision-language model where the engineer sat.
Everything rests on a small naming grammar. Geometric instruments analyse the target mesh and give short names to what the model must refer to: levels where the cross-section changes, closed rings of a fitted cross-section with their lines and arcs, analytic surfaces such as planes and cylinders, hole stacks, repeated patterns, and the missing and extra bodies of the current residual. The values behind every name come from fitting. Section outlines are split at corners and decomposed into lines and arcs, with a tolerance estimated from the mesh itself, and equal circles are grouped into bolt-circle patterns. Where no detector has named a location, the model can compose one, for instance the midpoint of two levels.
The model issues one command per turn. One instrument renders the target and reports its size and a guessed construction regime, which is evidence rather than a restriction. Another cuts a section and breaks the profile into named pieces. A single command, sketch, adds one feature: the model names a plane, a level, the profile pieces and an operation, such as an extrusion, revolution, loft or hole. The builder resolves the names to fitted values, emits CadQuery code, runs it, and reports which volume is still missing and which is in excess. Features can be replaced, undone or dropped, so the next decision either adds a feature or corrects one. Two details keep the loop honest. The model is never shown its score against the reference. And the driver returns the saved version with the smallest missing plus excess volume relative to the input mesh, with no ground-truth model involved.
The strongest baseline, CADFather, runs the very same model, but around a learned generator, a candidate pool and a parameter optimiser. Across five benchmarks, rescored with the same evaluation code, CADMAGEDDON has the highest volume overlap and surface-type score and the lowest Chamfer distance on all five. The margin is smallest on DeepCAD's simple shapes and grows on mechanical parts. The largest gains are in the Generalized Match Score, which checks whether surfaces are the right kind: on MCB it rises from zero point seven zero five to zero point eight one eight. On gears and impellers, the baselines reproduce the hub but merge or omit the teeth and blades.
The comparison that most directly tests the thesis holds the model fixed and swaps the harness. On twenty-three parts from BenchCAD-2, the same Qwen model inside Qwen Code, a general-purpose coding agent, scores zero point seven nine, and returns nothing on two parts. CADMAGEDDON scores zero point nine three three. A variant writing native FreeCAD programs scores zero point nine two five.
There is a limitations section, and it is specific. The system assumes a clean mesh of a single part, and every benchmark is derived from CAD models, so real scans and assemblies are untested. The instruments bound what the agent can express: on BenchCAD-2 every attempt builds at most two of the fifty-one through-holes of one part. The emitted code uses literal dimensions rather than named parameters, and fillets are separate solids rather than edge operations, so design intent is not recovered. The frontier comparison leans on leaderboard entries with different inputs and subsets. A reconstruction takes up to sixty model calls. And although the model fits on one GPU, the reported runs were served across four.
The idea to carry away is a division of labour. Let the language model decide what to build, choosing among entities that measurement has already found, and let fitting decide how big. What is new is an action space grounded in the target, where the model points at geometry instead of writing it down. As the authors put it, the instruments, not model scale, carry much of the accuracy.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free