Lune

NeurIPS2021Top-tier venue

SketchGen: Generating Constrained CAD Sketches

Wamiq Reyaz Para, Shariq Farooq Bhat, Paul Guerrero, Tom Kelly, Niloy J. Mitra, Leonidas J. Guibas, Peter Wonka

Abstract

Computer-aided design (CAD) is the most widely used modeling approach for technical design. The typical starting point in these designs is 2D sketches which can later be extruded and combined to obtain complex three-dimensional assemblies. Such sketches are typically composed of parametric primitives, such as points, lines, and circular arcs, augmented with geometric constraints linking the primitives, such as coincidence, parallelism, or orthogonality. Sketches can be represented as graphs, with the primitives as nodes and the constraints as edges. Training a model to automatically generate CAD sketches can enable several novel workflows, but is challenging due to the complexity of the graphs and the heterogeneity of the primitives and constraints. In particular, each type of primitive and constraint may require a record of different size and parameter types. We propose SketchGen as a generative model based on a transformer architecture to address the heterogeneity problem by carefully designing a sequential language for the primitives and constraints that allows distinguishing between different primitive or constraint types and their parameters, while encouraging our model to re-use information across related parameters, encoding shared structure. A particular highlight of our work is the ability to produce primitives linked via constraints that enables the final output to be further regularized via a constraint solver. We evaluate our model by demonstrating constraint prediction for given sets of primitives and full sketch generation from scratch, showing that our approach significantly out performs the state-of-the-art in CAD sketch generation.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

27 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Text2CAD: Generating Sequential CAD Designs from Beginner-to-Expert Level Text Prompts cites PolyGen: An Autoregressive Generative Model of 3D Meshes
  • Text2CAD: Generating Sequential CAD Designs from Beginner-to-Expert Level Text Prompts cites Free2CAD: parsing freehand drawings into CAD commands
  • Text2CAD: Generating Sequential CAD Designs from Beginner-to-Expert Level Text Prompts cites Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequences
  • Text2CAD: Generating Sequential CAD Designs from Beginner-to-Expert Level Text Prompts cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
  • Text2CAD: Generating Sequential CAD Designs from Beginner-to-Expert Level Text Prompts cites Vitruvion: A Generative Model of Parametric CAD Sketches
  • Free2CAD: parsing freehand drawings into CAD commands cites Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequences
  • Free2CAD: parsing freehand drawings into CAD commands cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
  • Free2CAD: parsing freehand drawings into CAD commands cites Vitruvion: A Generative Model of Parametric CAD Sketches
  • Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequences cites PolyGen: An Autoregressive Generative Model of 3D Meshes
  • DeepCAD: A Deep Generative Network for Computer-Aided Design Models cites PolyGen: An Autoregressive Generative Model of 3D Meshes
  • DeepCAD: A Deep Generative Network for Computer-Aided Design Models cites DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation
  • Vitruvion: A Generative Model of Parametric CAD Sketches cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
  • Vitruvion: A Generative Model of Parametric CAD Sketches cites DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation
  • ComplexGen: CAD reconstruction by B-rep chain complex generation cites PolyGen: An Autoregressive Generative Model of 3D Meshes
  • ComplexGen: CAD reconstruction by B-rep chain complex generation cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
  • ComplexGen: CAD reconstruction by B-rep chain complex generation cites Vitruvion: A Generative Model of Parametric CAD Sketches
  • DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation cites PolyGen: An Autoregressive Generative Model of 3D Meshes
  • DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation cites A Learned Representation for Scalable Vector Graphics
  • D2CSG: Unsupervised Learning of Compact CSG Trees with Dual Complements and Dropouts cites Free2CAD: parsing freehand drawings into CAD commands
  • D2CSG: Unsupervised Learning of Compact CSG Trees with Dual Complements and Dropouts cites Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequences
  • D2CSG: Unsupervised Learning of Compact CSG Trees with Dual Complements and Dropouts cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers27

  1. Text2CAD: Generating Sequential CAD Designs from Beginner-to-Expert Level Text PromptsMohammad Sadil Khan, Sankalp Sinha, Talha Uddin Sheikh, Didier Stricker et al.NeurIPS 2024 · 148 citations
  2. ComplexGen: CAD reconstruction by B-rep chain complex generationHaoxiang Guo, Shilin Liu, Hao Pan, Yang Liu et al.SIGGRAPH 2022 · 106 citations
  3. Free2CAD: parsing freehand drawings into CAD commandsChangjian Li, Hao Pan, Adrien Bousseau, Niloy J. MitraSIGGRAPH 2022 · 100 citations
  4. Vitruvion: A Generative Model of Parametric CAD SketchesAri Seff, Wenda Zhou, Nick Richardson, Ryan P. AdamsICLR 2022 · 86 citations
  5. D2CSG: Unsupervised Learning of Compact CSG Trees with Dual Complements and DropoutsFenggen Yu, Qimin Chen, Maham Tanveer, Ali Mahdavi-Amiri et al.NeurIPS 2023 · 61 citations

Builds on13

  1. PolyGen: An Autoregressive Generative Model of 3D MeshesCharlie Nash, Yaroslav Ganin, S. M. Ali Eslami, Peter W. BattagliaICML 2020 · 339 citations
  2. DeepCAD: A Deep Generative Network for Computer-Aided Design ModelsRundi Wu, Chang Xiao, Changxi ZhengICCV 2021 · 290 citations
  3. DeepSVG: A Hierarchical Generative Network for Vector Graphics AnimationAlexandre Carlier, Martin Danelljan, Alexandre Alahi, Radu TimofteNeurIPS 2020 · 247 citations
  4. Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequencesKarl D. D. Willis, Yewen Pu, Jieliang Luo, Hang Chu et al.SIGGRAPH 2021 · 197 citations
  5. A Learned Representation for Scalable Vector GraphicsRaphael Gontijo Lopes, David Ha, Douglas Eck, Jonathon ShlensICCV 2019 · 153 citations

Related papers

  1. UniSketch: A Unified Framework for Parametric Sketch Generation and Constraint PredictionJing Lin, Fazhi He, Rubin FanAAAI 2026
  2. Aligning Constraint Generation with Design Intent in Parametric CADEvan Casey, Tianyu Zhang, Shu Ishida, John Roger Thompson et al.ICCV 2025 · 4 citations
  3. SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled CodebooksXiang Xu, Karl D. D. Willis, Joseph G. Lambourne, Chin-Yi Cheng et al.ICML 2022 · 126 citations
  4. Drawing2CAD: Sequence-to-Sequence Learning for CAD Generation from Vector DrawingsFeiwei Qin, Shichao Lu, Junhao Hou, Changmiao Wang et al.ACM MM 2025 · 4 citations
  5. Computer-Aided Design as LanguageYaroslav Ganin, Sergey Bartunov, Yujia Li, Ethan Keller et al.NeurIPS 2021 · 129 citations
Dusk over the sea between two cliffs drawn in fine vertical lines