Autoregressive B-Rep Shape Generation with Parametric Surfaces

Dafei Qin, Rui Xu, Zeyu Shen, Kaichun Qiao, Hongyang Lin, Qixuan Zhang, Huaijin Pi, Lan Xu, Jingyi Yu, Wenping Wang, Taku Komura

TL;DR

ParaCAD is a novel autoregressive framework that generates CAD models directly in their native parametric surface representation from conditional point clouds. By tokenizing exact surface types and continuous parameters rather than relying on grid-based approximations, and deferring topological assembly to a deterministic geometric solver, it produces highly accurate, watertight, and fully editable Boundary Representations (B-Reps).

What Problem Does This Paper Address?

In Computer-Aided Design (CAD), shapes are predominantly stored as Boundary Representations (B-Reps), where geometry and topology are defined by mathematically precise vertices, curves, and surfaces. However, applying deep learning to B-Rep generation is notoriously difficult due to the heterogeneous nature of these geometric primitives and their complex discrete topological relationships.

To make CAD models "network-friendly," recent generative methods often approximate surfaces using uniformly sampled point clouds or regular UV grids. Unfortunately, this approximation discards the underlying mathematical definitions (e.g., a perfect cylinder becomes a collection of approximated grid points). As a result, small compression errors amplify during downstream operations like surface-surface intersection, leading to cracks, holes, and models that are difficult for engineers to edit or manufacture.

Comparison between grid-based approximation and native parametric representation

Methods

ParaCAD solves this by introducing a representation-first approach that directly generates native parametric surfaces and delegates topology reconstruction to a robust geometric solver. The pipeline consists of three main stages:

  1. Surface-Centric Tokenizer: Each face is serialized into a fixed-length block of 13 discrete tokens. The first token defines the surface type (plane, cylinder, cone, sphere, torus, or freeform). For the five analytic primitives, subsequent tokens explicitly encode intrinsic parameters (bounded UV domains and type-specific scalars like a cone's semi-angle) and extrinsic placement (a SIM(3) transformation matrix). For complex freeform patches, it utilizes Finite Scalar Quantization (FSQ) to discretize the geometry into a compatible token format.
  2. Autoregressive Transformer: A decoder-only GPT architecture predicts the sequence of surface token blocks. The network is conditioned on an input point cloud, which is processed by a point-cloud encoder and injected into the transformer blocks via cross-attention.
  3. Exact Geometric Solver: Instead of forcing the neural network to guess the topology (edges and vertices), ParaCAD computes them deterministically. It extends the generated UV domains to ensure overlap, intersects the surfaces, and splits them into candidate pieces. Finally, it uses a point-cloud coverage score combined with a binary integer program to select and sew the pieces into a valid, watertight 2-manifold shell.
The ParaCAD Pipeline

Datasets

The authors constructed a large-scale point-cloud-to-CAD dataset derived from the ABC dataset.

  • Size: 583K B-Rep instances after filtering out duplicate parts based on a hash of part names, edge/vertex counts, and primitive type distributions.
  • Processing: High-fidelity point clouds (10,240 points per model) were sampled directly from the exact CAD geometry using OpenCASCADE and farthest point sampling. The dataset is split into 90% training, 5% validation, and 5% test sets.

Key Insights and Ideas

  • Decoupling Geometry and Topology: By removing explicit topological entities (like edges and vertices) from the learning space, the generative task is substantially simplified. The model can focus entirely on predicting geometrically meaningful surfaces, leaving the combinatorial assembly to classical geometry routines.
  • Hybrid Tokenization: Combining continuous parameters for simple analytic shapes with discrete latent codes (FSQ) for freeform shapes allows the model to maintain a unified, fixed-length sequence structure without sacrificing the exact mathematical definitions of standard primitives.

Key Results

ParaCAD was evaluated against representative point-cloud-conditioned B-Rep generation baselines, including P2CAD, HoLa, and NVDNet.

  • Geometric Accuracy: ParaCAD achieved a Chamfer Distance (CD) of $1.140 \times 10^{-2}$, outperforming NVDNet (1.207) and HoLa (3.650).
  • Semantic Fidelity: Using a type-conditioned surface coverage metric (F1 score) to measure both geometric alignment and surface-type correctness, ParaCAD achieved an F1 score of 0.784, drastically outperforming NVDNet (0.502) and P2CAD (0.177).
Qualitative comparison against baseline methods

As shown in the per-type classification breakdown, ParaCAD maintains high accuracy across all canonical surface types:

Per-type surface classification F1 scores
  • Topological Validity: After post-processing, ParaCAD achieved a 55.81% validity ratio for generating fully closed, watertight B-Rep solids from raw point clouds, compared to HoLa's 47.15%.

Limitations and Future Work

While ParaCAD represents a significant step forward, the authors note several areas for improvement:

  • UV Prediction Accuracy: More accurate UV domain predictions are required to help the post-processing pipeline handle highly complex patch structures more robustly.
  • Higher-Order Freeforms: The current framework's support for complex freeform patches is limited; extending this to higher-order freeform surfaces is essential for industrial deployment.
  • User Intent Alignment: Incorporating post-training techniques (like reinforcement learning from human feedback) could help better align the generative model with specific user design intents and further improve the watertightness rate.

Summary updated

BibTeX
@inproceedings{qin2026autoregressive,
  author = {Dafei Qin and Rui Xu and Zeyu Shen and Kaichun Qiao and Hongyang Lin and Qixuan Zhang and Huaijin Pi and Lan Xu and Jingyi Yu and Wenping Wang and Taku Komura},
  title = {{Autoregressive B-Rep Shape Generation with Parametric Surfaces}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2026},
  doi = {10.1145/3799902.3811040},
}
Figure