Occupancy-Based Dual Contouring

Jisung Hwang, Minhyuk Sung

TL;DR

Occupancy-Based Dual Contouring (ODC) is a novel, learning-free algorithm designed to extract high-fidelity 3D meshes from neural occupancy fields. By replacing traditional gradient-based normal estimation with a clever geometric search for "2D points" on grid faces, ODC recovers sharp features and smooth surfaces that standard methods like Marching Cubes turn into aliased, staircase-like artifacts—all while running in just a few seconds on a GPU.

What Problem Does This Paper Address?

In the world of 3D deep learning, "occupancy functions" (which simply label a point as inside or outside a shape) have become a dominant way to represent geometry. However, turning these abstract functions back into a usable 3D mesh is a notorious bottleneck.

The industry standard, Marching Cubes (MC), assumes the surface crosses the midpoint of a grid edge, leading to "staircase" artifacts. More advanced "Dual Contouring" methods exist, but they typically require Signed Distance Functions (SDFs) and their gradients to identify sharp corners. Occupancy fields don't provide distance information, and their gradients are often poorly defined or only useful at the infinitesimal boundary. Consequently, current 3D generative models often produce meshes that look far worse than the high-quality geometry actually "hidden" inside the neural network.

Methods

ODC adapts the Manifold Dual Contouring (MDC) framework to work specifically with binary or continuous occupancy data without needing gradients. Its pipeline consists of four key parallelizable steps:

  1. 1D Point Search: Instead of linear interpolation, ODC uses a binary search along grid edges to precisely locate where the surface crosses.
  2. 2D Point Search (The Core Innovation): To calculate surface normals without gradients, the authors introduce a "line-binary search" to find auxiliary points on the grid faces. By finding where the surface intersects a face in multiple directions, they can define a local flat plane that accurately represents the surface orientation within that voxel.
  3. 3D Point Identification: Using the planes derived from the 1D and 2D points, the algorithm solves a Quadric Error Function (QEF). This places the final mesh vertices at the intersection of these planes, effectively "snapping" them to sharp edges and corners.
  4. Intersection-free Polygonization: The method incorporates quad-splitting techniques to ensure the resulting mesh is manifold and free of self-intersections, a common failure point for dual contouring.

The entire process is designed for GPU parallelization, treating every grid edge, face, and cell as an independent task.

Datasets

The authors evaluated ODC against a wide range of state-of-the-art 3D generative and reconstruction models:

  • SALAD & 3DShape2VecSet: Recent high-performance 3D generative models.
  • Michelangelo: A conditional model for text-to-3D and image-to-3D generation.
  • IM-NET: A classic occupancy-based autoencoder.
  • Myles’ Dataset: A collection of 79 high-quality 3D meshes used as ground truth. Occupancy was derived from these using "winding numbers" to ensure a fair comparison against traditional geometry.

Key Insights and Ideas

  • Gradients are a Distraction: The paper argues that for occupancy fields, the local gradient at a single point is a poor proxy for the surface normal of the entire voxel. By searching for points on the faces of the grid (2D points), ODC captures the "big picture" of the surface orientation more robustly.
  • The "True" Shape is Hidden: A striking insight from Figure 1 is that many neural models (like SALAD) are actually generating much better geometry than we thought. Previous "aliased" results were a failure of the extraction method (Marching Cubes), not the generative model itself.
  • Learning-Free is Robust: Unlike recent "Neural Marching Cubes" variants that require training on specific datasets, ODC is purely geometric. This makes it "plug-and-play" for any new occupancy-based model without worrying about out-of-distribution errors.

Key Results

  • Fidelity: ODC achieved 6x to 15x smaller fitting errors compared to Marching Cubes and existing Dual Contouring variants at the same resolution ($128^3$).
  • Sharp Features: Qualitatively, ODC is significantly better at recovering thin structures (like chair legs) and sharp mechanical edges that other methods smooth out or break.
  • Manifoldness: In tests with the SALAD dataset, 100% of ODC-generated meshes were manifold and free of self-intersections, compared to only ~22% for Intersection-free Contouring (IC).
  • Speed: Despite the iterative searches, ODC extracts a mesh in ~1.7 to 3.5 seconds on a single NVIDIA A6000 GPU. While slightly slower than Marching Cubes, it is fast enough for interactive applications.

Limitations and Future Work

  • Uniform Resolution: Currently, the method uses a uniform grid. The authors suggest that moving to adaptive resolutions (like Octrees) would allow for even higher detail in complex areas while saving memory in empty space.
  • Topology Ambiguity: Like most contouring methods, ODC can struggle with extremely complex topology (e.g., multiple thin surfaces passing through a single tiny voxel), which can lead to "knots" or holes.
  • Computation Overhead: While fast, the occupancy function must be queried many times (15 iterations for 1D search, 45 for 2D search). For extremely heavy neural networks, this inference time could become a bottleneck.

Summary updated

BibTeX
@inproceedings{hwang2024occupancy,
  author = {Jisung Hwang and Minhyuk Sung},
  title = {{Occupancy-Based Dual Contouring}},
  booktitle = {SIGGRAPH Asia},
  year = {2024},
  url = {https://openreview.net/forum?id=vdlswzZAWG},
}

Loading related content...

Figure