Search papers, labs, and topics across Lattice.
The authors develop CIT-CAD, a framework that infers a hierarchical Constraint Intent Tree (CIT) from natural language to guide, verify, and iteratively repair parametric CAD code synthesis. Existing text-to-CAD models rely on surface-level geometric metrics like IoU, which routinely mask critical failures in part decomposition, construction hierarchies, and parametric editability. By reconciling actual code-derived constraints against the inferred intent tree to localize and fix program errors, the method significantly enhances structural fidelity and execution accuracy, especially on complex multi-entity designs.
High IoU scores often conceal broken CAD construction logic—a blind spot resolved here by translating natural language into checkable constraint trees that can verify and self-repair parametric CAD code.
Natural-language Computer-Aided Design (CAD) code generation aims to turn design intent into executable and editable parametric programs. Large language models (LLMs) make this goal increasingly practical, but useful systems must preserve the construction process behind the rendered geometry. Existing benchmarks and methods mostly focus on how closely the generated CAD model matches the reference geometry, often using metrics such as Intersection over Union (IoU). Such metrics can miss errors in part decomposition, construction hierarchy, Boolean operations, sketch structure, and geometric relations. This gap calls for a representation that makes design intent explicit and lets a system check generated code against that intent. We propose CIT-CAD, a framework that infers a Constraint Intent Tree (CIT) from the input description to represent the intended entities, hierarchy, operations, and relations. The tree has two roles: it guides CAD code generation and defines expected constraints for verification. The framework extracts actual constraints from the generated program, compares them with the expected constraints, and uses mismatches to localize and repair design violations. Experiments show that the framework improves CAD generation performance, with larger gains on more complex multi-entity designs. By turning design intent into an explicit and checkable object, this work is the first attempt to move text-to-CAD generation beyond rendered-geometry matching toward construction-aware synthesis, verification, and repair.