TL;DR
This paper introduces Neural Marching Cubes (NMC), a deep learning approach that significantly improves the classic Marching Cubes algorithm for extracting 3D meshes from implicit fields. NMC learns to reconstruct sharp geometric features like edges and corners, a long-standing challenge for traditional methods, by leveraging novel, feature-aware tessellation templates and a data-driven learning process.
What Problem Does This Paper Address?
The Marching Cubes (MC) algorithm is a cornerstone for extracting 3D surfaces (isosurfaces) from volumetric data, often represented as grids of signed distance fields (SDFs) or occupancy values. However, standard MC relies on predefined, coarse templates that struggle to accurately represent sharp geometric features like edges and corners. This limitation arises because MC processes each cube of the grid independently, failing to capture the contextual information across neighboring cubes that defines such features. While various MC variants have been proposed to refine tessellations or incorporate assumptions like trilinearity, they still fall short in faithfully reconstructing these critical geometric details, leading to smoothed-out or inaccurate representations of complex shapes.
Methods
The core innovation of Neural Marching Cubes (NMC) lies in reframing the MC process as a machine learning problem. Instead of relying on fixed, heuristic templates, NMC:
- Learns Feature-Aware Tessellation Templates: The authors design new, more detailed tessellation templates for each cube that are specifically crafted to preserve geometric features.
- Develops a Compact Per-Cube Representation: A novel, fixed-length vector representation is introduced to encode both the local mesh topology (which parts of the template are used) and the precise vertex positions within each cube. This representation is designed to be compatible with neural networks.
- Employs a 3D Convolutional Neural Network (CNN): A 3D CNN is trained to predict this per-cube representation from the input implicit field grid. By using a limited receptive field, the network learns local geometric context, enabling it to generalize to new shapes.
- Data-Driven Learning: The network is trained on a dataset of ground-truth meshes, learning to infer vertex positions and topologies that accurately reconstruct features. This approach bypasses the need for explicit feature detection or manual parameter tuning.
- NMC-lite: A simplified version is also proposed, using less complex tessellation templates from prior work, offering a trade-off between fidelity and mesh complexity.
Datasets
- ABC Dataset: This dataset, consisting of triangle meshes of CAD shapes, was used for training and evaluation. The shapes are characterized by rich geometric features and are often axis-aligned.
- Thingi10K Dataset: This dataset of 3D-printing models was used to test the generalizability of the trained NMC model to different types of shapes.
The authors also describe a data preparation process to convert raw 3D meshes into the format required for training NMC, which involves dividing meshes into cubes and optimizing vertex positions.
Key Insights and Ideas
- Learning Context is Key for Features: The fundamental insight is that sharp geometric features are not local phenomena but arise from the coherence of the implicit field across neighboring grid cells. NMC's success stems from its ability to learn this context via its CNN architecture.
- Data-Driven Tessellation Beats Hand-Crafted Heuristics: By learning from examples, NMC can overcome the limitations of fixed, heuristic-based tessellation templates that have plagued traditional MC for decades.
- Compact Representation Enables Neural Processing: The development of a suitable per-cube representation is crucial for making the meshing process amenable to deep learning.
- Generalization to New Shapes and Inputs: The network's ability to generalize to unseen shapes and even noisy inputs (when trained appropriately) highlights the power of the learned approach.
Key Results
- Superior Feature Recovery: NMC demonstrably recovers sharp edges and corners much more accurately than MC33, Lopes & Brodlie (2003), and trilinear interpolation, as shown in both qualitative visual comparisons and quantitative metrics like Edge Chamfer Distance (ECD) and Edge F-score (EF1).
- Improved Topological Accuracy: NMC reconstructs local mesh topologies more faithfully, especially in areas with thin structures or complex geometries where traditional methods fail.
- Competitive Performance on SDF and Binary Voxels: NMC shows strong performance on both signed distance fields and binary voxel inputs, outperforming existing methods across various metrics.
- Adaptability to Resolution: The network can adapt to varying input grid resolutions, though performance degrades at very low resolutions where topological ambiguities become too severe.
- Generalizability: The model trained on the ABC dataset shows good performance when tested on the Thingi10K dataset, indicating its ability to generalize.
Limitations and Future Work
- Sensitivity to Rotation: The current model exhibits some sensitivity to object rotation, likely due to the axis-aligned nature of the training data. Future work could involve training with rotation augmentation.
- Inability to Represent Certain Topological Cases: Like traditional MC, NMC's templates cannot represent all possible topological configurations (e.g., multiple intersections on an edge). The authors suggest learning more complex edge vertex representations to address this.
- Self-Intersections: While rare, self-intersections can occur in the output meshes, particularly in cases where the input geometry is not well-represented by the learned templates.
- Mesh Uniformity: The current approach does not enforce uniform triangle quality (e.g., equilateral triangles). Future work could explore preparing training data that encourages such properties.
- Broader Applications: The proposed per-cube representation is seen as a general shape representation that could be applied to other tasks like shape upsampling and generation.
Summary updated