Shape Atlas
English
Back to paper index

3D generation research index

BrepGen

BrepGen: A B-rep Generative Diffusion Model with Structured Latent Geometry

Xiang Xu, Joseph G. Lambourne, Pradeep Kumar Jayaraman, Zhengqing Wang, Karl D.D. Willis, Yasutaka Furukawa ·

One-minute overview

BrepGen generates editable CAD boundary representations. It denoises a tree of faces, edges and vertices, then recovers shared topology by merging duplicate nodes and fits trimmed surfaces in a CAD kernel.

Research problem and inputs and outputs

Inputs
Random noise for unconditional sampling. The authors also demonstrate optional furniture class labels and sets of partial input faces for completion.
Outputs
A native single-body CAD B-rep, represented by trimmed parametric faces, shared edge curves, vertices and their incidence relations. Some generated candidates fail the watertightness check.

Original paper figure

Figure 2, 3 · arXiv:2401.15563v3

Credit · Xiang Xu et al.

The authors’ Figure 2 shows how sampled local geometry and repeated nodes encode a B-rep as a tree. Figure 3 details the sequential face and edge–vertex denoisers and their parent conditioning.

Method step by step

  1. Author report

    Sample faces on their 2D parameter domain and edge curves along a 1D domain. Normalize the samples and encode them with separate convolutional VAEs. Keep global bounding boxes apart from local shape, and pack endpoint coordinates with the edge representation.

    Sample and compress local face and edge geometry
  2. Author report

    Duplicate an edge under each incident face and a vertex under each incident edge. Add further copies of nodes under the same parent up to the target branching width to accommodate different part counts.

    Turn shared topology into repeats in a tree
  3. Author report

    Use four transformer denoisers for face boxes, face geometry, edge boxes and joint edge–vertex geometry. Later features depend on earlier ones. Inject the face features into its child edge tokens through the known tree index.

    Denoise the face and edge–vertex branches in sequence
  4. Author report

    Prune near-duplicate nodes under the same parent and identify shared edges and vertices across parents. Average matching vertices, align curve endpoints and adjust sampled surfaces to their incident edges.

    Merge repeats and align geometry to the recovered topology
  5. Author report

    Approximate sampled faces and edges with B-spline surfaces and curves. Close edge loops, trim the incident faces and sew them into the final B-rep.

    Fit and trim parametric geometry in OpenCascade

Key design choices

  • Author report

    Across-parent repeats represent shared geometry, while within-parent repeats fill variable branch lengths. Detecting duplicate geometry recovers the corresponding topology and avoids separately predicting discrete incidence matrices.

    Use two kinds of duplication for different relationships
  • Author report

    During face denoising, replace a random subset of tokens with the corresponding noisy geometry from user-provided faces. Stop replacement during the final 50 steps to let the model adjust those faces while completing the solid.

    Use a pretrained model for partial-face completion

How to read the experiments

  • Datasets and protocol

    Author report

    Use the original DeepCAD split with filters that leave 87,815 training B-reps, and apply new 90/5/5 splits to ABC and the furniture collection. Section 5 describes the full 6,171-model furniture dataset across 10 categories; the training setup further filters its examples.

    Evaluate mechanical parts, industrial CAD and furniture
  • Baselines

    Author report

    The DeepCAD benchmark compares the DeepCAD sequence model, the SolidGen direct generator and BrepGen. Separate experiments condition generation on reference topology or attempt to generate topology separately with multinomial diffusion.

    Compare direct B-rep and sketch-and-extrude generation
  • Metrics

    Author report

    Use 3,000 generated B-reps and 1,000 references for distribution metrics, with 2,000 surface points per object. Measure coverage against the reference set, minimum matching distance as the mean Chamfer distance from each reference shape to its nearest generated shape, and Jensen–Shannon divergence on voxelized samples. Novelty and uniqueness are evaluated among valid B-reps, and validity requires watertight solids.

    Measure shape similarity and solid validity separately
  • Results

    Author report

    DeepCAD / SolidGen / BrepGen yield coverage of 65.46% / 71.03% / 73.87% and valid ratios of 46.1% / 60.3% / 62.9%, averaged across 20 runs. MMD ×100 is 1.29 / 1.08 / 1.04 and JSD ×100 is 1.67 / 1.31 / 1.28. BrepGen’s separate ABC row gives 57.92% coverage and 48.2% validity.

    Improve DeepCAD distribution scores and valid-solid yield
  • Trade-offs

    Editorial reading

    Conditioning on ground-truth topology raises DeepCAD validity from 62.9% to 79.8% and coverage from 73.87% to 78.16%, under a stronger input assumption. The independently generated topology baseline passes its own incidence checks on 6.2% of outputs. Section 6.1.3 reports about five seconds for four denoisers on an RTX A5000 for DeepCAD and ten seconds for the larger ABC or furniture settings. These times describe denoising, before CAD fitting.

    Separate the reference-topology advantage from unconditional production

Limitations and use boundaries

Fixed version and section references

Read fixed-version paper · arXiv:2401.15563v3 · Source reviewed

Experiments were reported by the authors. The editorial analysis cites their evidence.