Split-and-Fit: Learning B-Reps via Structure-Aware Voronoi Partitioning

Yilin Liu, Jiale Chen, Shanshan Pan, Daniel Cohen-Or, Hao Zhang, Hui Huang

TL;DR

"Split-and-Fit" introduces a novel top-down paradigm for reconstructing Boundary Representation (B-Rep) models from unstructured 3D data. By using a neural network to predict Voronoi partitions of the volumetric space first, the method simplifies complex CAD reconstruction into a series of single-primitive fitting tasks, resulting in superior topological consistency and geometric accuracy compared to traditional bottom-up approaches.

What Problem Does This Paper Address?

In the world of Computer-Aided Design (CAD), the "Boundary Representation" (B-Rep) is the gold standard. Unlike simple point clouds or meshes, a B-Rep defines a solid through a structured collection of parametric surfaces (faces), curves (edges), and vertices, along with their topological relationships.

Reconstructing these clean, editable B-Reps from raw, noisy point clouds is notoriously difficult. Existing "bottom-up" methods usually try to cluster points into primitives first and then stitch them together. This often leads to "fragmented" models, missing connections, or an excessive number of redundant primitives. Other methods using Constructive Solid Geometry (CSG) suffer from ambiguity—there are infinitely many ways to combine shapes to reach the same result, making it hard for neural networks to learn a unique, "correct" structure.

Methods

The authors propose a two-step "Split-and-Fit" approach that flips the traditional pipeline on its head:

  1. The Split (NVD-Net): Instead of looking for primitives directly, the authors train a neural network called NVD-Net (Neural Voronoi Diagram Network) to predict the Voronoi boundaries of the underlying shape. In this context, a Voronoi partition divides the 3D space such that each cell contains exactly one B-Rep primitive. The network takes a voxelized Unsigned Distance Field (UDF) as input and performs a binary classification to identify which voxels lie on a Voronoi boundary.
  2. The Fit: Once the space is partitioned into Voronoi cells, the problem becomes much simpler. The system performs region growing to identify individual cells and then fits a single elementary primitive (plane, sphere, cylinder, cone, or torus) into each cell using a standard least-squares approach. Because the cells are already defined, the primitives are "automatically trimmed" by the cell boundaries.

Finally, the method extracts the topological connectivity (how faces meet at edges and vertices) directly from the adjacency of the Voronoi cells.

Datasets

The researchers utilized the ABC dataset, a massive collection of one million CAD models.

  • Training: Approximately 20,000 models featuring elementary and B-Spline primitives.
  • Testing: A test set of around 1,000 models, including surface types like planes, cylinders, spheres, cones, and tori, and curve types like lines and circles.
  • Real-World Scans: The method was also tested on real scans from structured light scanners to evaluate its robustness against noise and data omissions.

Key Insights and Ideas

  • Voronoi Duality: The most brilliant insight is recognizing that Voronoi diagrams are the natural "dual" to B-Rep structures. Predicting the partition (the "split") explicitly reveals the number of primitives and their connections before any fitting happens.
  • Top-Down vs. Bottom-Up: By starting with a global spatial partition, the method avoids the "local minima" and "combinatorial explosion" that plague bottom-up clustering methods.
  • Eliminating Ambiguity: Unlike CSG trees, the Voronoi diagram for a set of ground-truth primitives is unique. This provides a clear, non-ambiguous target for neural network training.
  • Structure-Awareness: Because the Voronoi boundaries are predicted based on local geometric cues (like discontinuities in the distance field's derivatives), the network generalizes better to unseen shapes than methods that try to memorize global configurations.

Key Results

The "Split-and-Fit" approach significantly outperformed state-of-the-art baselines like ComplexGen, HPNet, and SEDNet across several metrics:

  • Geometric Accuracy: It achieved a Chamfer Distance (CD) on vertices of 0.0327, compared to 0.0901 for ComplexGen—a nearly 3x improvement.
  • Topological Consistency: The F1-score for surface-curve connectivity (FE) reached 0.778, significantly higher than the next best method (0.739).
  • Visual Fidelity: Qualitative results show much cleaner models with sharper features and more plausible intersections, especially on complex, high-genus structures.
  • Generalization: The method maintained consistent performance even as the similarity between test shapes and training data decreased, whereas competing methods saw sharp increases in error.

Limitations and Future Work

Despite its success, the authors acknowledge a few hurdles:

  • Voxelization Constraints: The reliance on a voxel grid (256³) introduces quantization errors. Very thin structures or tiny primitives can be "lost" if they fall below the voxel resolution.
  • Noise Sensitivity: While more robust than previous methods, extreme noise in real-world scans can still lead to "zigzag" boundaries or small holes in the predicted Voronoi diagram.
  • B-Spline Stability: While NVD-Net can predict boundaries for complex B-Spline surfaces, the analytical fitting of these surfaces remains unstable.
  • Future Directions: The authors suggest exploring implicit functions to represent Voronoi diagrams, which could bypass the resolution limits of voxel grids.

Summary updated

BibTeX
@article{liu2024split,
  author = {Yilin Liu and Jiale Chen and Shanshan Pan and Daniel Cohen-Or and Hao Zhang and Hui Huang},
  title = {{Split-and-Fit: Learning B-Reps via Structure-Aware Voronoi Partitioning}},
  journal = {ACM Trans. Graphics},
  year = {2024},
  url = {https://openreview.net/forum?id=Qtad6i2Jkp},
}
Figure