arXiv:2611.01165cs.GROct 2026

Manuscript Offprint

arXiv:2611.01165

Composable CAD: Sketch-to-CAD Program Synthesis in Parts

Yuanbo Li, Vivian Liu, Sean Liu, Justin Matejka

Yuanbo Li, Vivian Liu*, Sean J. Liu*, and Justin Matejka

Autodesk Research San Francisco, CA, US *Equal contribution

Figure

Figure 1: Given one freehand sketch (a), our system segments the object into parts and generates several samples for each part (b). The user composes a shape by selecting any sample per part (Example 1 in red, Example 2 in blue), and different selections compose into different shapes (c). The output is a CadQuery program for each part.

Abstract

Designers often build CAD models part by part, and may iterate on individual components throughout the design process. Recent vision-language models (VLMs) can synthesize CAD programs from sketches, but generating parts independently does not ensure that they are composable: components may lose the intended proportions and alignments or fail to join correctly where they meet. We present Composable CAD, a framework that uses off-the-shelf VLMs to synthesize a design space of independently sampled, interchangeable component programs, where any selection composes into a coherent CAD model. We recover design constraints from the sketch and use them to construct a coarse proxy that establishes how the components are sized, aligned, and attached. We then generate each component independently from its proxy and apply a deterministic rewrite to ensure that neighboring components meet at their prescribed interfaces. We evaluate Composable CAD across a range of objects and sketch styles and conduct two user studies. Compared to VLM-only baselines, our method produces more detailed, composable designs.

1. Introduction

In industrial design workflows, designers typically begin with a sketch [EMA24, BH20]. The sketch records the initial concept: which parts make up the design, how those parts are laid out in space, and what details set the design apart. Sketching serves as the front end of ideation, letting designers visualize and test ideas rapidly [ES07, Bux07]. Once designers settle on a concept, they re-

build it in a CAD tool at higher fidelity and explore more precise variations of it [SXZ17,LYZ24].

Recent vision-language models (VLMs) attempt to automate CAD generation from sketches [Ant26, Gem25]. A designer can provide a foundation model an input text prompt "generate CAD for a chair" and sketch and receive a CAD program as output [Ant26, Gem25]. A growing body of work in this space instantiated agentic coding loops where the model executes its CAD programs,

2 of 27

Y. Li et al. / Composable CAD

Figure

Figure 2: Independently sampled parts do not connect on their own. When each part is generated in a separate VLM call, with no communication between the calls, the parts leave gaps and misalignments where they should meet (left; insets show the junctions between armrest and seat and between armrest and backrest failing to close). Our algorithm closes these interfaces, so adjacent parts meet congruently with no gap or overlap (right).

inspects renders for visual feedback, and revises the CAD geometry over several rounds [ATZ25, MKC25, OMSR25, FNY*26, BLBF26, AAMJ26].

However, independently generated parts which may be valid in isolation, are not necessarily composable: the parts may not fit together, fail to join without gaps or overlaps, and have hallucinated away from the original proportions, alignments, and design intents defined in the original sketch (Figure 2). Guaranteeing composability in CAD generation raises a few challenges. First, the agent must preserve the designer-set constraints – the part decomposition, proportions, and alignments laid out in the sketch. Second, the agent must preserve the structural constraints and relationships between parts, so they can join without gaps or volumetric overlap. This is difficult for VLMs because the surfaces where parts meet are often implicit in CAD programs and emerge only when the operations execute. An extrusion, for example, creates surfaces with no explicit handle in the code. Additionally, structured exploration can give users choices for how to refine the generated CAD assembly.

We present Composable CAD, a framework that turns a concept sketch into a design space of independently sampled, composable part programs (Figure 1). Designers explore alternatives for each part and compose a design from their selections. Sketch-derived relations guide part proportions, alignments, and attachments, while a deterministic rewriting algorithm enforces structural compatibility across the sampled variants.

Our system follows a two-stage, coarse-to-fine pipeline. In the planning stage, we recover attachment, alignment, and proportion relations from the sketch and use them to construct a coarse proxy that fixes the layout of the parts. In the detail generation stage, we elaborate each part independently from its proxy. Finally, we use a deterministic rewrite algorithm to reconcile independently generated parts at their connecting surfaces, making them interchangeable across samples.

We demonstrate Composable CAD across a variety of objects and sketch styles, producing composable, part-based design spaces. Compared with VLM baselines that generate objects as a whole or create parts separately, our method produces detailed parts while

maintaining composability across variants. We conducted two user studies: one comparing the perceptual quality of our outputs to a single-pass VLM baseline, and another comparing our part-based exploration workflow to a VLM-only baseline. Our results show that participants preferred our generated shapes and favored our part-based workflow of selecting and combining individual parts.

In summary, our contributions are:

  • A formulation of sketch-to-CAD synthesis as a design space of independently sampled, interchangeable part programs, and its application to exploratory design.
  • A coarse-to-fine generation pipeline that recovers geometric relations from the sketch, plans the object as a shared proxy, and generates each part independently.
  • A deterministic rewrite algorithm that localizes connecting surfaces and edits independently generated part programs to meet congruently.

References (80)