Differentiable Surface Triangulation

Marie-Julie Rakotosaona, Noam Aigerman, Niloy J. Mitra, Maks Ovsjanikov, Paul Guerrero · DOI

TL;DR

This paper introduces the first fully differentiable approach to surface triangulation, allowing gradient-based optimization of mesh properties like triangle size and edge alignment. By relaxing the discrete nature of triangle existence into continuous "inclusion scores," they enable seamless integration with modern deep learning frameworks for mesh processing and design.

What Problem Does This Paper Address?

Triangle meshes are a fundamental representation for 3D geometry, but their discrete topological structure has historically been a major hurdle for gradient-based optimization. Traditional methods either treat vertex positions and connectivity separately or rely on combinatorial operations that break differentiability. This prevents leveraging powerful tools like gradient descent for tasks like optimizing mesh quality, adapting mesh density to geometric features, or aligning mesh edges with surface characteristics. The authors aim to bridge this gap by creating a differentiable framework for surface triangulation.

Methods

The core of the paper is a "differentiable weighted Delaunay triangulation" (dWDT). Instead of a binary decision of whether a triangle exists, they introduce "soft" triangle inclusion scores. This is achieved by:

  • Relaxing Delaunay Triangulation: The classic Delaunay triangulation is defined by circumcenters and Voronoi cells. The authors extend this by defining triangle inclusion scores based on the signed distance of the circumcenter to the boundaries of "reduced Voronoi cells" (Voronoi cells considering only the triangle's vertices). This creates a smooth function that outputs a score between 0 and 1, indicating the likelihood of a triangle being part of the mesh.
  • Weighted Delaunay Triangulation (WDT): They incorporate vertex weights into the WDT framework. These weights allow for more control over the triangulation, even enabling vertices to be excluded from the final mesh if their weights are sufficiently high relative to others. This is crucial for adapting mesh density and potentially reducing vertex count.
  • 3D Surface Parameterization: To apply this to 3D surfaces, they first decompose the surface into patches. Each patch is then parameterized to a 2D plane using Least-Squares Conformal Maps (LSCM). The 2D dWDT is then "pulled back" to the 3D surface using the inverse mapping.
  • Loss Functions and Optimization: The differentiable nature allows for various differentiable loss functions to be defined on the 3D mesh, such as triangle size loss, angle loss (for equilateral triangles), and curvature alignment loss. These losses are then optimized using standard gradient descent optimizers like Adam.

Datasets

The paper evaluates their method on 140 randomly selected meshes from the Thingi10k dataset. They also demonstrate their approach on an analytically defined catenoid surface.

Key Insights and Ideas

  • Differentiability is Key: The fundamental insight is that by making triangulation differentiable, a vast array of optimization problems become tractable within modern deep learning pipelines.
  • Soft Triangulation: The concept of "soft" triangle inclusion scores is a clever way to bridge the discrete combinatorial nature of meshes with continuous optimization.
  • WDT for Control: The use of weighted Delaunay triangulation provides a powerful mechanism for controlling mesh density and potentially reducing the number of vertices without explicit simplification steps.
  • Generality: The framework is designed to be general, working with any surface that can be parameterized and accepting any differentiable objective function.

Key Results

  • Improved Accuracy: The method achieves significantly better alignment to target triangle sizes and curvature directions compared to state-of-the-art methods like [Loseille 2017] and [Jakob et al. 2015]. For instance, in curvature alignment, their method shows substantially lower RMSE errors.
  • Flexibility: They demonstrate the ability to blend multiple loss functions (e.g., triangle size and equilateral shape) to achieve desired trade-offs in triangulation properties.
  • Optimization Performance: Gradient-based optimizers like Adam and LBFGS perform significantly better than non-gradient-based methods like Simulated Annealing, highlighting the importance of differentiability.
  • Qualitative Improvements: Visualizations show meshes that more accurately conform to target size distributions and align edges with principal curvature directions, especially on complex organic shapes.

Limitations and Future Work

  • Patch Boundaries: A primary limitation is that the boundaries between the decomposed patches do not participate in the optimization, which can lead to visible artifacts. The authors suggest iterative meshing and reparameterization as a potential solution.
  • Scalability: Handling a very large number of points (e.g., 100k+) or large patches is computationally challenging due to the cubic complexity of considering all possible triangles. A multiscale approach is proposed for future work.
  • Future Directions: The authors envision their method as a component in larger differentiable systems, learning to triangulate based on deformations, and extending it to other representations like NURBS or neural surfaces. They also aim to recover topological structure and potentially train a network to directly output vertex weights and displacements.

Summary updated

BibTeX
@article{rakotosaona2021differentiable,
  author = {Marie-Julie Rakotosaona and Noam Aigerman and Niloy J. Mitra and Maks Ovsjanikov and Paul Guerrero},
  title = {{Differentiable Surface Triangulation}},
  journal = {ACM Trans. Graphics},
  year = {2021},
  doi = {10.1145/3478513.3480554},
}
Figure