Don't Mesh with Me: Generating Constructive Solid Geometry Instead of Meshes by Fine-Tuning a Code-Generation LLM
Not on the map. Why?
Abstract (arXiv)
While recent advancements in machine learning, such as LLMs, are revolutionizing software development and creative industries, they have had minimal impact on engineers designing mechanical parts, which remains largely a manual process. Existing approaches to generating 3D geometry most commonly use meshes as a 3D representation. While meshes are suitable for assets in video games or animations, they lack sufficient precision and adaptability for mechanical engineering purposes. This paper introduces a novel approach for the generation of 3D geometry that generates surface-based Constructive Solid Geometry (CSG) by leveraging a code-generation LLM. First, we create a dataset of 3D mechanical parts represented as code scripts by converting Boundary Representation geometry (BREP) into CSG-based Python scripts. Second, we create annotations in natural language using GPT-4. The resulting dataset is used to fine-tune a code-generation LLM. The fine-tuned LLM can complete geometries based on positional input and natural language in a plausible way, demonstrating geometric understanding.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 22 Nov 2024.
Builds on
32 of 51 references.
References · 32
- 2022DreamFusion: Text-to-3D using 2D Diffusioncited by 3,025
- 2019DeepSDF: Learning Continuous Signed Distance Functions for Shape Representationcited by 2,689
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2019Scene Representation Networks: Continuous 3D-Structure-Aware Neural Scene Representationscited by 864
- 2021Diffusion Probabilistic Models for 3D Point Cloud Generationcited by 735
- 2022Point-E: A System for Generating 3D Point Clouds from Complex Promptscited by 699
- 20163D-R2N2: A Unified Approach for Single and Multi-view 3D Object Reconstructioncited by 588
- 2016Learning a Probabilistic Latent Space of Object Shapes via 3D Generative-Adversarial Modelingcited by 558
- 2018AtlasNet: A Papier-Mach'e Approach to Learning 3D Surface Generationcited by 539
- 20213D Shape Generation and Completion through Point-Voxel Diffusioncited by 516
- 2019PointFlow: 3D Point Cloud Generation with Continuous Normalizing Flowscited by 488
- 2018ABC: A Big CAD Model Dataset For Geometric Deep Learningcited by 341
20 more
- 2021DeepCAD: A Deep Generative Network for Computer-Aided Design Modelscited by 271
- 2020PolyGen: An Autoregressive Generative Model of 3D Meshescited by 269
- 2023MeshGPT: Generating Triangle Meshes with Decoder-Only Transformerscited by 259
- 2021CLIP-Forge: Towards Zero-Shot Text-to-Shape Generationcited by 254
- 2019Learning Shape Templates with Structured Implicit Functionscited by 242
- 2019BSP-Net: Generating Compact Meshes via Binary Space Partitioningcited by 206
- 2017Octree Generating Networks: Efficient Convolutional Architectures for High-resolution 3D Outputscited by 189
- 20193D Point Cloud Generative Adversarial Network Based on Tree Structured Graph Convolutionscited by 173
- 2016Generative and Discriminative Voxel Modeling with Convolutional Neural Networkscited by 128
- 2022SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebookscited by 125
- 2024BrepGen: A B-rep Generative Diffusion Model with Structured Latent Geometrycited by 103
- 2023Hierarchical Neural Coding for Controllable CAD Model Generationcited by 86
- 2020UCSG-Net -- Unsupervised Discovering of Constructive Solid Geometry Treecited by 78
- 2021CAPRI-Net: Learning Compact CAD Shapes with Adaptive Primitive Assemblycited by 62
- 2022ShapeCrafter: A Recursive Text-Conditioned 3D Shape Generation Modelcited by 62
- 2021CSG-Stump: A Learning Friendly CSG-Like Representation for Interpretable Shape Parsingcited by 51
- 2024Text2CAD: Generating Sequential CAD Models from Beginner-to-Expert Level Text Promptscited by 23
- 2023Experiments on Generative AI-Powered Parametric Modeling and BIM for Architectural Designcited by 3
- 2022Simplified Learning of CAD Features Leveraging a Deep Residual Autoencodercited by 2
- 2022SimCURL: Simple Contrastive User Representation Learning from Command Sequencescited by 2
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2026CADFS: A Big CAD Program Dataset and Framework for Computer-Aided Design with Large Language Modelscited by 5
- 2025A Survey of AI Methods for Geometry Preparation and Mesh Generation in Engineering Simulationcited by 3
- 2026BrepCoder: A Unified Multimodal Large Language Model for Multi-task B-rep Reasoningcited by 3
- 2025CADKnitter: Compositional CAD Generation from Text and Geometry Guidancecited by 2
- 2025GraphBrep: Learning B-Rep in Graph Structure for Efficient CAD Generationcited by 0
- 2026KDH-CAD: Knowledge-data hybrid CAD learning under data scarcitycited by 0
- 2026KDH-CAD: Knowledge-data hybrid CAD learning under data scarcity1 Jun 2026
- 2026CADFS: A Big CAD Program Dataset and Framework for Computer-Aided Design with Large Language Models3 May 2026
- 2026BrepCoder: A Unified Multimodal Large Language Model for Multi-task B-rep Reasoning25 Feb 2026
- 2025A Survey of AI Methods for Geometry Preparation and Mesh Generation in Engineering Simulation16 Dec 2025
- 2025CADKnitter: Compositional CAD Generation from Text and Geometry Guidance12 Dec 2025
- 2025GraphBrep: Learning B-Rep in Graph Structure for Efficient CAD Generation7 Jul 2025