DMesh: A Differentiable Mesh Representation

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

In the world of 3D computer vision and graphics, polygonal meshes are the gold standard for representing shapes. They are compact, explicit, and play nicely with modern rendering engines. However, they have a major flaw: they are notoriously difficult to use in deep learning. Because a mesh's "connectivity" (which vertices connect to form which triangles) is a discrete graph, you cannot easily use standard gradient-based optimization to change a shape's topology.

A new paper from researchers at the University of Maryland and Adobe Research, titled DMesh: A Differentiable Mesh Representation, proposes a clever way to bridge this gap. By turning mesh connectivity into a probabilistic, differentiable operation, they’ve created a system that can "evolve" a mesh from a cloud of points or a set of images, changing its topology on the fly.

TL;DR

DMesh is a novel differentiable 3D mesh representation that uses Weighted Delaunay Triangulation (WDT) to optimize both vertex positions and mesh connectivity simultaneously. It enables high-quality, low-polygon reconstruction from point clouds and images while handling complex topological changes in a fully differentiable manner.

What Problem Does This Paper Address?

Most current "differentiable" 3D methods rely on implicit representations, such as Signed Distance Functions (SDFs). To get a usable mesh out of an SDF, you have to run an algorithm like Marching Cubes. This process is often computationally heavy, producing unnecessarily dense meshes with millions of tiny triangles that struggle to capture sharp features.

Directly optimizing a mesh is hard because changing topology—say, turning a solid ball into a donut—is a discrete jump. Previous attempts to make meshes differentiable usually kept the topology fixed (you could stretch the "skin" of the ball, but never poke a hole in it). DMesh aims to provide a "truly" differentiable representation where both the geometry (where the points are) and the topology (how they connect) can be optimized using standard gradients.

Methods

The core engine of DMesh is Weighted Delaunay Triangulation (WDT).

  1. Tessellation: Instead of a fixed grid, DMesh uses a set of points in space. WDT partitions the space around these points into a collection of convex tetrahedra.
  2. Probabilistic Connectivity: The researchers define the probability of a triangular face existing on the final surface. This probability is based on two factors:
  3. $\Lambda_{wdt}$: Does this face exist in the current triangulation?
  4. $\Lambda_{real}$: A per-vertex "realness" value ($\psi$) that determines if a point is part of the actual surface or just an "imaginary" helper point used to define the volume.
  5. Differentiable WDT: A major contribution is making the WDT process itself differentiable and efficient. While previous differentiable WDT methods were computationally expensive ($O(N^2)$), the authors developed a nearly linear-time ($O(N)$) approximation by leveraging the Power Diagram (the geometric dual of WDT).
  6. Optimization: Because face existence is a continuous probability, the system can use backpropagation to move vertices, adjust their weights, and change their "realness" values to minimize a reconstruction loss.
Optimization process showing random and sample point initialization evolving into 3D meshes over several steps.

Datasets

The authors evaluated DMesh across several diverse 3D datasets to prove its versatility:

  • Stanford 3D Scanning Repository: Classic models like the Bunny, Dragon, and Buddha for mesh-to-mesh reconstruction.
  • Thingi32: Used for testing closed-surface models.
  • DeepFashion3D: Used to test "open" surfaces (like clothing), which are traditionally difficult for volumetric methods.
  • Objaverse: A large-scale dataset used for "mixed" models containing both open and closed surfaces.

Key Insights and Ideas

  • Topology as a Continuous Variable: By treating the existence of a face as a probability, the act of "breaking" a connection or "forming" a new one becomes a smooth transition that gradients can navigate.
  • Handling Open Surfaces: Unlike SDF-based methods that require a clear "inside" and "outside," DMesh can represent open surfaces (like a single sheet of paper or a shirt) naturally because it selects faces from a tetrahedral volume rather than defining a solid interior.
  • Low-Poly Efficiency: Because DMesh isn't tied to a voxel grid, it can represent complex shapes with significantly fewer vertices and faces than traditional iso-surface extraction methods.
Examples of complex topologies handled by DMesh, including non-convex polyhedra, non-orientable geometry, and protein structures.

Key Results

  • Compactness: In point cloud reconstruction tasks, DMesh represented shapes with roughly 3.5k vertices, whereas competing methods like PSR or FlexiCube required between 20k and 150k vertices to achieve similar visual quality.
  • Accuracy on Open Surfaces: DMesh significantly outperformed volumetric methods on open and mixed surfaces. For example, on a "Plant" model with many thin, open leaves, DMesh maintained high accuracy where other methods produced messy artifacts or failed entirely.
  • Topology Morphing: The authors demonstrated "shape interpolation" where a single torus (one hole) was optimized into a double torus (two holes) using only multi-view images as supervision.

Limitations and Future Work

Despite its strengths, DMesh has a few hurdles to clear:

  • Computational Scaling: While the authors improved the efficiency of WDT, it remains the bottleneck. Optimizing meshes with more than 100k vertices is currently challenging.
  • Non-Manifoldness: The probabilistic nature of the mesh can sometimes result in "non-manifold" geometry—physical impossibilities like three faces sharing a single edge.
  • Appearance: The current work focuses entirely on geometry. The authors suggest that future work could integrate color and texture information directly into the differentiable framework.

Check out the project page and source code: https://sonsang.github.io/dmesh-project

Summary updated

BibTeX
@inproceedings{son2024dmesh,
  author = {Sanghyun Son and Matheus Gadelha and Yang Zhou and Zexiang Xu and Ming 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