NeuroNURBS: Learning Efficient Surface Representations for 3D Solids

Jiajie Fan, Babak Gholami, Thomas Bäck, Hao WangarXiv 2024

Abstract

Boundary Representation (B-Rep) is the de facto representation of 3D solids in Computer-Aided Design (CAD). B-Rep solids are defined with a set of NURBS (Non-Uniform Rational B-Splines) surfaces forming a closed volume. To represent a surface, current works often employ the UV-grid approximation, i.e., sample points uniformly on the surface. However, the UV-grid method is not efficient in surface representation and sometimes lacks precision and regularity. In this work, we propose NeuroNURBS, a representation learning method to directly encode the parameters of NURBS surfaces. Our evaluation in solid generation and segmentation tasks indicates that the NeuroNURBS performs comparably and, in some cases, superior to UV-grids, but with a significantly improved efficiency: for training the surface autoencoder, GPU consumption is reduced by 86.7%; memory requirement drops by 79.9% for storing 3D solids. Moreover, adapting BrepGen for solid generation with our NeuroNURBS improves the FID from 30.04 to 27.24, and resolves the undulating issue in generated surfaces.

Introduction: The Challenge of CAD Representation

In the world of Computer-Aided Design (CAD), 3D objects are typically stored as Boundary Representations (B-Reps). These are mathematical descriptions of surfaces using NURBS (Non-Uniform Rational B-Splines). However, deep learning models often struggle with NURBS because their parameters—such as control points and knot vectors—vary in size and structure from one surface to another.

To standardize inputs, current state-of-the-art models like BrepGen use UV-grids, sampling a grid of points on the surface to create a fixed-size representation. This approximation has significant flaws: it is memory-intensive, loses precision unless the grid is extremely dense, and frequently leads to "undulation"—wavy or bumpy artifacts on surfaces that should be perfectly smooth.

Surface undulation artifacts in a CAD model generated using traditional UV-grid approximations.

The NeuroNURBS Approach

The authors propose NeuroNURBS, a representation learning pipeline that skips the approximation and encodes mathematical parameters directly. By learning to "speak" the native language of CAD, the model inherently respects the geometric properties of the surfaces it represents.

Methodology

The pipeline utilizes a Variational Autoencoder (VAE) with a Transformer backbone. Transformers are ideal for this task because they naturally handle sequences of data (like knot vectors) and can use padding masks to ignore empty space in tensors. The encoder compresses complex NURBS data into a compact "NURBS feature" vector, which can then be used for downstream tasks like NURBS-Gen (solid generation) and NURBS-GAT (machining feature segmentation).

Experimental Evaluation and Key Results

The researchers evaluated NeuroNURBS on the DeepCAD and MFCAD datasets, demonstrating that mathematical purity leads to both efficiency and quality.

  • Efficiency: GPU consumption during training dropped by 86.7%, and the memory required to store 3D features fell by 79.9%. This is because a flat plane might need a 1,024-point grid to be represented in a UV-grid, but only needs 4 control points in NURBS.
  • Generative Quality: The Frechet Inception Distance (FID) improved from 30.04 to 27.24. Most importantly, the model eliminated the undulation problem; AI-generated surfaces are now as smooth as those created by human engineers.
  • Segmentation Accuracy: In the MFCAD task, the model achieved a near-perfect 99.65% accuracy using only 1.29M parameters, compared to the 34.2M parameters required by UV-grid versions.
Smooth, high-fidelity 3D solids generated and represented using the NeuroNURBS framework.

Conclusion

NeuroNURBS represents a major step forward in CAD deep learning by replacing memory-heavy point-grid approximations with direct parameter encoding. This shift not only reduces computational overhead by over 80% but also solves long-standing issues with surface quality in generative models. Future work will focus on refining edge geometry and developing new metrics to evaluate the mathematical validity of generated CAD solids.

Summary updated

BibTeX
@misc{fan2024neuronurbs,
  author = {Jiajie Fan and Babak Gholami and Thomas Bäck and Hao Wang},
  title = {{NeuroNURBS: Learning Efficient Surface Representations for 3D Solids}},
  year = {2024},
  eprint = {2411.10848},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.10848},
}
Figure