# StepCAD: Mesh-to-CAD Code Generation via LLM Policy and Geometry-Guided Search

*Ghadi Nehme, Faez Ahmed*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149665) · [Open on the map](../papers.html#p149665)

Category: [3D Vision & Image Restoration](../pcat/2.md) › [Cross-Modal 3D Scene Understanding](../pgroup/180.md) · Type: new method · Keywords: mesh-to-CAD, CAD program synthesis, geometry-guided search, generative optimization, large-scale CAD dataset

Areas: [Code & Coding Agents](../areas/codegen.md) › Code Verification › Verification benchmarks

## Summary
StepCAD introduces a generative optimization approach that performs step-by-step, geometry-conditioned CAD program synthesis and refines them via IoU-guided tree search, achieving state-of-the-art mesh-to-CAD reconstruction.

## Explained to a 5-year-old
We have a toy that is a 3D shape made of blocks. We want to tell a computer how to build that shape using simple steps. The computer guesses a list of steps that build the shape, then checks if the steps are good and fixes them. This helps make the shape exactly right and lets us build many different kinds of objects. It makes creating designs easier and more accurate.

## Explained to a 5-year-old, longer
Imagine you have a puzzle piece that looks like a 3D object, like a toy car. You want to tell a robot how to build that exact car using simple building blocks. Usually, you just draw a picture, but here we need a list of steps that the robot can follow. The robot first makes a guess of steps, like "add a block here" or "rotate this part". Then it checks if those steps make the car look right, and if not, it tries to improve the steps. It keeps trying many small changes until the car matches the puzzle piece perfectly. This helps the robot make the car exactly as you imagined. It also works for many different shapes, not just simple ones. The robot can handle very long sequences of steps, even hundreds of them. This makes building complex objects easier and more accurate. It also helps designers test ideas quickly without needing to physically build them. The robot learns from a huge collection of step-by-step building instructions. This collection includes many different kinds of operations, like adding, cutting, and bending. By using this big library, the robot can choose the best steps for any shape. Overall, this method turns a 3D shape into a detailed plan that can be used to create real objects.

## For a technical reader
The system takes a 3D mesh and generates a sequence of CAD operations that reconstruct the mesh. It uses a policy network conditioned on both the target geometry and intermediate states to propose steps, then refines those steps via an IoU-guided search over local edits. A large dataset of diverse CAD programs provides training data with many operation types and long sequences. Experiments show substantial IoU gains over prior one-shot methods, especially on complex shapes.

## Problem
Recovering executable CAD programs from 3D meshes is fundamentally challenging due to the long-horizon, compositional nature of CAD construction and the need for precise estimation of both discrete operations and continuous parameters. Existing learning-based methods treat this as a one-shot prediction and lack mechanisms for refinement and diverse operations.

## Method
The approach first predicts construction sequences using a state-conditioned policy that leverages both target and intermediate geometry, then refines the sequences through a search over local program edits guided by IoU. A large-scale dataset of diverse CAD operations and intermediate transitions is also introduced to support training.

## Results
The approach achieves up to 87.2% relative IoU improvement over the best prior method and shows increasingly larger gains as shape complexity grows, demonstrating superior reconstruction accuracy, validity, and robustness.

## Contributions
The paper introduces a generative optimization framework that performs step-by-step geometry-conditioned program synthesis and IoU-guided refinement, and releases ARCADE-1.5M, a large-scale dataset with diverse CAD operations and long-horizon sequences.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149665)
