Draw Step by Step: Reconstructing CAD Construction Sequences from Point Clouds via Multimodal Diffusion

Weijian Ma, Shuaiqi Chen, Yunzhong Lou, Xueyang Li, Xiangdong Zhou

Abstract

CAD-Diffuser is a novel multimodal diffusion model designed to reconstruct editable CAD construction sequences from raw 3D point clouds. By treating CAD commands as a structured language and employing a "volume-based noise schedule," the model mimics the human "top-down" design process—prioritizing the generation of primary outlines before filling in fine geometric details. This approach bridges the gap between unstructured 3D scans and parametric, editable CAD models.

Introduction: The Challenge of Reverse Engineering

In engineering and manufacturing, a 3D shape is more than just a collection of points; it represents a series of intentional design steps, such as sketching a profile and extruding it to a specific depth. While existing tools can reconstruct 3D meshes or voxels from scans, these outputs are often "dumb" geometry—static representations that are difficult to edit and lack the original designer's intent.

Converting unstructured 3D point clouds into structured, parametric CAD sequences is inherently difficult. Previous "one-pass" neural networks often struggled with complex shapes or produced disorganized sequences that do not reflect human design logic. CAD-Diffuser addresses this by creating a model that understands both the final geometry and the logical "top-down" workflow humans use to build it.

Methodology: The CAD-Diffuser Framework

The CAD-Diffuser architecture operates through three primary components: multimodal tokenization, a token-based diffusion process, and a specialized noise schedule.

Multimodal Tokenization

To process disparate data types, the model employs two specialized tokenizers:

  1. Point Cloud Tokenizer: A discrete Variational Autoencoder (VAE) converts raw points into tokens. It is trained with a self-supervised "face segmentation" task, which forces the model to recognize geometric primitives like flat surfaces and sharp edges.
  2. CAD Sequence Tokenizer: CAD commands (lines, circles, extrusions) are converted into discrete tokens, allowing the model to treat design sequences as a structured language.

Multimodal Token-based Diffusion

The core of the system is a BERT-based denoiser. During the "forward" diffusion process, CAD tokens are gradually replaced with a special [MASK] token. In the "reverse" process, the model learns to predict the original tokens from these masks, conditioned on the point cloud features. This allows the model to leverage the "grammar" of CAD design—for instance, understanding that an extrusion command must logically follow a sketch command.

The CAD-Diffuser architecture, illustrating the multimodal tokenization and BERT-based denoising process.

Volume-based Noise Schedule

A key innovation of this work is the volume-based noise schedule. Unlike standard diffusion models that add noise uniformly, CAD-Diffuser adds noise based on the volume contributed by a specific CAD command. During training, small details are masked out early and frequently, while large structural components (the "outlines") remain visible longer. This teaches the model to reconstruct the "big picture" first, mirroring the human design process.

Experimental Results

The model was evaluated on two major CAD benchmarks: DeepCAD and the Fusion 360 Gallery.

Quantitative Performance

CAD-Diffuser significantly outperforms previous state-of-the-art methods, such as DeepCAD and HNC-CAD, across several key metrics. On the DeepCAD dataset, it achieved a Command Accuracy ($Acc_{ct}$) of 88.55%, compared to 82.69% for the next best method. Furthermore, it produced much lower Chamfer Distances, indicating superior geometric fidelity in capturing fine details.

Qualitative Comparison and Human Study

Qualitative results demonstrate that CAD-Diffuser generates cleaner, more logical construction sequences than its predecessors. In a user study involving seven professional designers, the sequences generated by CAD-Diffuser were voted as the most "reusable" and "human-like," closely approaching the quality of ground-truth human designs.

Qualitative comparison of CAD-Diffuser against previous state-of-the-art methods across various shapes.

Conclusion and Future Work

CAD-Diffuser represents a significant step toward automated, intelligent reverse engineering. By framing CAD reconstruction as a multimodal language task and incorporating human-centric design priors like the volume-based noise schedule, the model produces editable and logical design sequences.

Future work will focus on expanding the variety of supported operations (e.g., fillets, chamfers) and scaling the system with larger pretrained language models to handle even more complex geometries. Additionally, testing the model's robustness against extremely noisy or incomplete "in-the-wild" scans remains a priority for real-world application.

Summary updated

BibTeX
@inproceedings{ma2024draw,
  author = {Weijian Ma and Shuaiqi Chen and Yunzhong Lou and Xueyang Li and Xiangdong Zhou},
  title = {{Draw Step by Step: Reconstructing CAD Construction Sequences from Point Clouds via Multimodal Diffusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02564},
}
Figure