ABRA-CAD: Geometry-Guided Reconstruction of CAD Solids and Construction Programs

Anush Bharathi, Ramanathan MuthuganapathyarXiv 2026

TL;DR

Sharing a 3D mechanical part without its design history is like sharing a compiled binary without the source code—you can look at it, maybe 3D print it, even measure it, but you can't easily edit a hole's diameter or adjust a fillet. ABRA-CAD reverse-engineers editable CAD programs from raw geometry (B-reps, meshes, point clouds, or 2D drawings) by realizing that a part's surfaces already contain the exact dimensions of the tools that made it. Instead of training massive AI models to hallucinate numbers from scratch, it reads candidate tools directly off the geometry and uses fast bitwise math plus a tiny neural network to figure out how to combine them.

What Problem Does This Paper Address?

In engineering, parts are routinely exchanged as meshes, 3D scans, 2D drawings, or standard STEP files. A STEP file stores a Boundary Representation (B-rep)—a mathematically precise description of faces, edges, and vertices—yet strips away the sequence of sketches, extrusions, cuts, and fillets that actually built the shape.

Recovering an editable CAD script (here, Python-based CadQuery code) normally requires solving a nasty joint inference problem: figuring out which modeling operations occurred AND what exact numerical dimensions each operation used. Recent approaches throw billion-parameter Vision-Language Models or code generators at both tasks simultaneously. The authors ask a simpler question: if the geometry is sitting right in front of us, why are we guessing the numbers?

Methods

Overview of the ABRA-CAD pipeline from raw geometric inputs to stand-alone CadQuery code.

Figure 1. From an observation to a CadQuery program. From a mesh or points (1), an analytic fit and a point network propose surfaces (2; the completion network shown is used only in an ablation), and a min-cut over the cells they bound gives a solid (3). Construction tools are read off that solid’s faces, or directly off a B-rep (4), and Boolean search followed by the learned policy finds a program (5). A drawing is carved from its views and refined by an auxiliary correction network. Every route ends in a program that is replayed in the kernel, checked against the input and written out as stand-alone CadQuery (6; the program shown reaches IoU 0.996). Grey boxes are analytic or kernel steps; tinted boxes are learned models with their parameter counts.

ABRA-CAD separates finding geometry from finding the construction sequence:

  1. Reading Tools off Faces: Given a B-rep, planar face outlines define extrusion profiles, cylindrical faces define hole cutters, revolved surfaces yield revolutions, and edges/faces define fillets, chamfers, and shells. This turns continuous parameter prediction into a clean, discrete puzzle: which tools do we combine, and in what order?
  2. Probe-Screened Boolean Search: Calling a CAD kernel to test millions of 3D combinations is painfully slow. Instead, ABRA-CAD scatters probe points inside, outside, and hugging the faces of the target shape. Every candidate tool gets a binary bitmask showing which probes it contains. Unions and cuts become lightning-fast bitwise operations (OR, AND, DIFF), screening hundreds of thousands of candidates before verifying only the winners in the CAD kernel.
  3. Tiny Policy with Expert Iteration: When pure Boolean search falls short (e.g., complex sequential finishing features), a compact 2.74M-parameter graph transformer steps in. Trained via expert iteration—learning from its own successful search discoveries—it explores sequences ordered by probability (conditional code length).
  4. Handling Incomplete Inputs:
  5. Meshes & Point Clouds: Analytic fitting and an 11.7M-parameter set-prediction network propose carrier surfaces (planes, cylinders, cones, etc.), which slice space into cells labeled "material" or "empty" via graph min-cut to form a B-rep. If search fails to match the mesh, a fallback slices the mesh into extruded cross-sections.
  6. 2D Orthographic Drawings: The 3 views are traced, extruded, and intersected like virtual clay carving, then cleaned up by a 1.67M-parameter occupancy correction network.

Datasets

  • Training: Synthetic Zero-to-CAD programs (for the policy and surface-proposal networks) and ABC training parts.
  • Evaluation:
  • A cross-modal set of 748 single-solid ABC parts (400 from ABC-EVAL + 348 from CADBench).
  • Fusion 360 Gallery test split (1,725 designs).
  • CADBench (4 splits of 3,000 designs each: DeepCAD, Fusion 360, ABC Extrude, and ABC All-Ops).

Key Insights and Ideas

  • Geometry is the ultimate cheat sheet: You don't need a 2-billion-parameter LLM to guess the radius of a bolt hole if you can fit a cylinder to the points and read the radius analytically. ABRA-CAD's learned components total just 1.67M to 17.2M parameters depending on the input route.
  • Zero-parameter search does the heavy lifting: On the Fusion 360 Gallery benchmark, parameter-free bitwise Boolean search alone recovers 83.0% of designs volume-exactly, already beating prior learned agents before the neural policy even wakes up.
  • Volume IoU lies about small details: Standard volumetric overlap (IoU) barely flinches when you shave off a crucial 0.2 mm chamfer (staying at 0.99994!). To catch these lost engineering details, the authors introduce Oriented Surface Coverage (OSC)—weighting small surface patches equally with large ones—and FeatR95, which checks whether recognized CAD features (holes, fillets, bosses) actually survive reconstruction.

Key Results

Visual comparison of reconstructed CAD programs and preserved features across input modalities.

Figure 3. Programs from every input on single-solid ABC parts across face-count tiers; columns follow Table 1. Reference faces are colored by recognized feature, and an output keeps a feature’s color where every face of that feature is covered. Below each output are its IND (labeled IoU), FeatR95 and OSC (best per row in bold); exact marks volume-exact programs, and failed outputs count as zero.
  • Exact B-rep Recovery: On Fusion 360 Gallery (within 100 kernel evaluations), ABRA-CAD recovers volume-exact programs for 86.5% of designs, compared to 67.5% for the published Gallery RL agent. On the harder 748 ABC parts, it rebuilds 403 of 748 parts volume-exactly from B-reps.
  • Meshes: Reaches 0.864 mean normalized volume IoU (IND) with the section-stack fallback (0.648 search-only), outperforming the 2.21B-parameter CADENA baseline (0.672). Feature retention (FeatR95) jumps to 0.731 vs. CADENA's 0.173.
  • 2D Drawings: Achieves 0.744 IND using 1.67M parameters, more than doubling the 8.77B-parameter Ortho2CAD RL (0.334).
  • Point Clouds: Using 8,192 oriented points, ABRA-CAD trails cadrille-RL slightly on mean IND (0.609 vs. 0.641, where cadrille uses 256 points), but nearly doubles the share of parts exceeding 0.95 IND (25.0% vs. 13.4%) and improves surface coverage (0.320 vs. 0.208 OSC).

Limitations and Future Work

  • Vocabulary ceiling: Exact recovery is bounded by supported operations; complex freeform surfaces (like lofts or splines seen in the harder ABC All-Ops split) remain out of reach.
  • Editability trade-offs: Reproducing exact geometry doesn't guarantee recovering the original engineer's design intent or parametric constraints. Similarly, when the mesh pipeline falls back to stacking extruded cross-sections, the resulting slab-by-slab script executes cleanly but isn't fun for a human to edit.
  • Future Direction: Pairing ABRA-CAD with 3D retrieval. Instead of asking generative AI to dream up mechanical parts from scratch, engineers could retrieve a close-enough STEP file from an existing industrial library, convert it into clean CadQuery code via ABRA-CAD, and tweak the parameters.

Summary updated

BibTeX
@misc{bharathi2026abra,
  author = {Anush Bharathi and Ramanathan Muthuganapathy},
  title = {{ABRA-CAD: Geometry-Guided Reconstruction of CAD Solids and Construction Programs}},
  year = {2026},
  eprint = {2611.37420},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37420},
}
Figure