CAD-from-Code engine creates verified 3D CAD data and tasks
CAD-from-Code: A Programmatic Data Engine for CAD Synthesis and Deterministic Evaluation
Artificial IntelligenceDatabases
Summary
Creating high-quality 3D design data is hard because different parts like shapes, drawings, and instructions are often made separately. The authors present CAD-from-Code, a tool that uses shared programs and random seeds to build complete, correct 3D designs and their drawings in a way that can be exactly repeated and verified. This lets them quickly make many challenging examples that are more complex than hand-made ones, and use these to test AI tools that try to understand or reconstruct 3D parts. Their results show this approach can make reliable, low-cost training and evaluation data without needing manual design or human judgment.
What this means in practice
- •For cad software developers: Generate verified synthetic CAD parts and assemblies to build and test reconstruction and annotation features.
- •For machine learning engineers: Create large, validated datasets for training and evaluating AI models on 3D CAD reconstruction and annotation tasks.
Authors
Junchao Li, Jinghang Wang, Yuchen Zhang, Yun Wu, Wai Yuet Chiu, Jinxin Wang, Mingkai Miao
Abstract
High-quality data for 3D computer-aided design (CAD) are difficult to scale because geometry, engineering drawings, annotations, and assembly semantics are often created separately. We introduce CAD-from-Code, a programmatic data engine that compiles shared executable recipes and random seeds into validated boundary-representation (B-Rep) parts, dimensioned drawings, structured annotations, and multi-part assemblies. This shared generative specification defines ground truth, controls geometric complexity and diversity, and enables deterministic replay and provenance tracing. Stage-wise validation checks verify geometric validity, task consistency, and assembly constraints. The framework rapidly generates feature-rich cases with higher average geometric complexity than the expert reference sample, without per-case expert design or LLM-generated reference answers. We construct benchmark covering 3D CAD reconstruction, annotation recovery, and assembly, with a deterministic offline evaluator requiring no LLM judges. Six LLM-based agents achieve overall scores of 0.293-0.727, revealing differences in model capabilities. On reconstruction tasks, synthetic and expert-designed cases yield similar overall mean scores and model performance trends. These results support low-cost, reproducible generation of CAD evaluation tasks with verifiable ground truth.