DMesh: A Differentiable Mesh Representation

Sanghyun Son, Matheus Gadelha, Yang Zhou, Zexiang Xu, Ming C. Lin, Yi Zhou

TL;DR

DMesh is a novel, fully differentiable 3D triangular mesh representation that simultaneously optimizes both vertex positions (geometry) and face connectivity (topology). By leveraging a computationally efficient formulation of Weighted Delaunay Triangulation (WDT), DMesh can reconstruct complex, open, closed, and non-orientable surfaces directly from point clouds or multi-view images using standard gradient-based optimization.

What Problem Does This Paper Address?

In 3D computer vision and graphics, polygonal meshes are the gold standard for modeling and animation due to their compact and explicit nature. However, integrating them into deep learning pipelines is notoriously difficult because mesh connectivity (which vertices connect to form faces) is inherently discrete.

To bypass this, most current methods use differentiable intermediate representations like Signed Distance Functions (SDFs) or volume densities, followed by an iso-surface extraction step (like Marching Cubes) to generate the final mesh. Unfortunately, this approach often produces unnecessarily dense meshes that blur sharp features and struggle significantly with open or non-orientable surfaces (like a Möbius strip). Direct mesh optimization methods exist, but they typically assume a fixed, pre-determined topology. DMesh bridges this gap by making both the geometry and the topology of the mesh completely differentiable.

Methods

DMesh defines a mesh probabilistically over a space tessellated by a Weighted Delaunay Triangulation (WDT).

  1. Space Partitioning: Given a set of points with positions and weights, WDT partitions the 3D domain into a collection of convex tetrahedra.
  2. Face Probability Formulation: The final mesh is a subset of the triangular faces of these tetrahedra. The authors define the existence probability of any given face $F$ as: $$\Lambda(F) = \Lambda_{wdt}(F) \cdot \Lambda_{real}(F)$$ where $\Lambda_{wdt}(F)$ is the probability that the face exists within the WDT structure, and $\Lambda_{real}(F)$ is determined by a learnable per-vertex "realness" feature $\psi \in [0, 1]$ indicating whether the vertex lies on the actual surface.

  3. Linear-Time Approximation: Computing $\Lambda_{wdt}$ exactly is computationally prohibitive ($O(N^2)$). The authors introduce a novel mathematical relaxation using pre-computed Power Diagrams to approximate the lower bound of the signed distance field, dropping the computational complexity to approximately linear time ($O(N)$).

  4. Optimization & Regularization: DMesh is optimized using standard reconstruction losses (e.g., Chamfer Distance for point clouds; $L_1$ loss via custom tile-based differentiable renderers for multi-view images). They introduce specific regularizers to control mesh complexity (weight regularization) and ensure high-quality, well-shaped triangles (quality regularization).
Figure 1: (→) Optimization process. We can optimize our mesh starting from either (a) random state or (b) initialization based on sample points for faster convergence. Mesh connectivity changes dynamically during the optimization. To make this topology change possible, we compute existence probability for an arbitrary set of faces in a differentiable manner.

Datasets

The authors evaluated DMesh across several standard 3D datasets, categorizing shapes into closed, open, and mixed surfaces:

  • Stanford 3D Scanning Repository: Used for ground-truth mesh-to-DMesh conversion (Bunny, Dragon, Buddha).
  • Thingi32: Four closed-surface models.
  • DeepFashion3D: Four open-surface models (garments).
  • Objaverse & Adobe Stock: Three complex models featuring mixed open and closed topologies.

Key Insights and Ideas

  • Topology Changes via Geometry: Because mesh connectivity is implicitly tied to vertex positions and weights through the WDT, changing a vertex's position or weight can dynamically alter the mesh's topology in a differentiable manner.
  • Breaking the Volumetric Constraint: Unlike implicit methods (SDFs) that require a well-defined "inside" and "outside," DMesh operates purely on face existence probabilities. This allows it to naturally represent complex non-orientable manifolds and open surfaces.
Figure 2: Versatility of DMesh. DMesh can represent diverse geometry in differentiable manner, including (a) non-convex polyhedra of different Euler characteristics, (b) non-orientable geometries (Möbius strip, Klein bottle), and (c) complex protein structure (colored for aesthetic purpose).
  • The Power of Regularization: The weight regularization term acts as an automatic mesh simplifier by "submerging" unnecessary vertices, allowing DMesh to generate highly compact representations without sacrificing geometric accuracy.

Key Results

  • High-Fidelity Conversion: When converting standard meshes to DMesh, the method achieves a recovery ratio of over 99.6% of the original faces with less than 1% false positives.
  • Compactness: In point cloud and multi-view reconstruction benchmarks, DMesh generates significantly more lightweight meshes than competing methods. For multi-view reconstruction, DMesh utilized only 4.19K vertices compared to FlexiCube's 10.9K and Neural Implicit Evolution's (NIE) 74.5K, while achieving a vastly superior Chamfer Distance (34.6 vs. 273 for FlexiCube).
  • Artifact Reduction: Unlike grid-based methods like Neural Dual Contouring (NDC), which suffer from blocky, step-like artifacts, DMesh produces smooth, high-quality surfaces.

Limitations and Future Work

  • Computational Bottleneck: While the face probability computation is linear, constructing the WDT itself at each optimization step remains an $O(N \log N)$ bottleneck. This currently limits DMesh from scaling effectively to high-resolution meshes exceeding 100K vertices.
  • Non-Manifoldness: Because the optimization constraints are relaxed, DMesh can generate spurious non-manifold elements. In testing, roughly 5.5% to 6.6% of edges were found to be non-manifold.
  • Future Directions: The authors propose exploring hybrid approaches that integrate distance field priors to guarantee manifold meshes, optimizing the WDT pipeline for speed, and extending the framework to handle appearance properties like color and texture.

Summary updated

BibTeX
@inproceedings{son2024dmesh,
  author = {Sanghyun Son and Matheus Gadelha and Yang Zhou and Zexiang Xu and Ming C. Lin and Yi Zhou},
  title = {{DMesh: A Differentiable Mesh Representation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Io1qKqCVIK},
}
Figure