Skip to content
Book Open access

CodeCAD: A Parametric CAD Dataset for Programmatic 3D Model Generation

Aug 2026 · Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2 · pp. 8847-8857 · 0 citations · 56 references

TL;DR

This work presents a dataset of over 95,000 native OpenSCAD models, primarily containing mechanical parts and engineering components, designed specifically for the programmatic generation of 3D models, and aims to open new opportunities for programmatic 3D model generation.

Abstract

Generative models have recently made significant progress in generating 3D content from image or text data, yet existing methods mostly rely on implicit or discretized geometric representations that lack parametric structure or design intent. These limitations make them poorly suited for computer-aided design (CAD). In contrast, code-based CAD representations offer parametric structure and a human-readable presentation but remain underexplored due to the scarcity of datasets. We present a dataset of over 95,000 native OpenSCAD models, primarily containing mechanical parts and engineering components, designed specifically for the programmatic generation of 3D models. The dataset consists of user-created OpenSCAD code, featuring both constructive solid geometry and sketch-and-extrude modeling, along with descriptive metadata, rendered images, and detailed license information. A five-stage pipeline ensures syntactic validity, semantic richness, de-duplication, and quality annotations. To test the dataset's potential, we fine-tuned code-generation large language models for text-to-CAD generation. The evaluation results show consistent improvements in compilation validity and geometric distance to ground-truth samples. By releasing this dataset publicly, we aim to open new opportunities for programmatic 3D model generation.

Read PDF

Similar papers

#machine learning Preprint Oct 2026

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

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 representa...

Ghadi Nehme, Faez Ahmed · 0 citations
Preprint Sep 2026

SAM3D-Part: Interactive Part Selection and Generation from 3D Objects

Part-level control is essential for modern 3D asset creation, where objects are frequently edited, reused, animated, or fabricated through their individual components. In many such workflows, users need only several specific components rather than a complete object decomposition. However, existing 3D generation methods...

Jia-Hao Chang, Dong Du, Wan-Hu Sun et al. · 0 citations
Preprint Sep 2026

ProxyBuild: Text-Guided Structured 3D Building Generation with Mesh-Anchored Procedural Proxies

Text-guided 3D building generation holds tremendous application potential, yet existing generative models typically output inseparable single meshes or non-interactive rendered representations. While procedural modeling can generate editable buildings with hierarchical structures, rule authoring is laborious, and even...

Xiang Tang, Ruo-Tong Li, Xiao-Peng Fan · 0 citations
#artificial intelligence Preprint Aug 2026

InstructMesh: Selective Refinement of Generative 3D Models for Fabrication

Recent advances in generative AI allow users to create 3D models from text or images. However, these models prioritize visual plausibility over geometric accuracy, often generating results with flaws that compromise their intended use post-fabrication. We present InstructMesh, an interactive post-generation refinement...

Faraz Faruqi, Ahmed Katary, Demircan Tas et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.