StepCAD:通过LLM策略和几何引导搜索实现网格到CAD的代码生成
研究论文 · 2026/10/08
从3D网格恢复可执行CAD程序具有挑战性,因为CAD构建具有组合性,且离散建模选择与连续参数之间存在交互。许多基于学习的方法一次性预测完整程序,并主要依赖草图-拉伸表示,限制了操作多样性以及在重建过程中纠正几何误差的机会。我们提出StepCAD,一种生成式优化方法,结合了状态条件CAD策略与几何引导搜索。给定输入网格,该策略根据目标几何和中间几何预测构建动作,并通过IoU引导的树搜索通过局部编辑来优化生成的程序。我们还引入了ARCADE-1.5M,一个包含150万个可执行CAD程序的大规模数据集,涵盖多种操作、最大长度超过150个计数操作的序列以及1250万个中间状态-动作转换。在多个CAD重建基准上的实验表明,StepCAD实现了最先进的几何重建精度,并保持高有效性,相对于最强评估基线,相对IoU提升高达87.2%,在复杂形状上增益尤为显著。项目页面:https://ghadinehme.com/stepcad.github.io/
该工作通过结合策略学习与搜索优化,显著提升了从网格重建CAD程序的精度和有效性,并提供了大规模数据集,推动了CAD生成领域的发展。
Recovering executable CAD programs from 3D meshes is challenging due to the compositional nature of CAD construction and the interaction between discrete modeling choices and continuous parameters. Many learning-based methods predict complete programs in a single pass and rely predominantly on sketch-extrude representations, limiting operation diversity and opportunities to correct geometric errors during reconstruction. We introduce StepCAD, a generative optimization approach that combines a state-conditioned CAD policy with geometry-guided search. Given an input mesh, the policy predicts construction actions conditioned on both target and intermediate geometry, and an IoU-guided tree search refines the resulting program through local edits. We also introduce ARCADE-1.5M, a large-scale dataset of 1.5M executable CAD programs spanning diverse operations, sequences with a maximum length of 150+ counted operations, and 12.5M intermediate state-action transitions. Experiments across multiple CAD reconstruction benchmarks show that StepCAD achieves state-of-the-art geometric reconstruction accuracy with consistently high validity, yielding up to 87.2% relative IoU improvement over the strongest evaluated baseline, with particularly large gains on complex shapes. Project page: https://ghadinehme.com/stepcad.github.io/