Abstract
MeshSDF presents a differentiable approach to extracting 3D meshes from Deep Signed Distance Functions (SDFs). Traditional methods like Marching Cubes are non-differentiable, creating a bottleneck for end-to-end optimization of explicit meshes. MeshSDF overcomes this by deriving a closed-form expression for the gradient of surface points with respect to the underlying implicit field. This allows for high-resolution shape optimization, including topological changes, while maintaining the efficiency of standard extraction algorithms. The method is validated through single-view reconstruction and aerodynamic shape optimization tasks.
Introduction: The Implicit-Explicit Tension
In 3D deep learning, a fundamental tension exists between implicit fields and explicit meshes. Implicit fields, such as Signed Distance Functions (SDFs), are well-suited for neural networks because they represent shapes as continuous functions, allowing for arbitrary topology and resolution. However, most downstream applications—including engineering simulations (CFD), rendering, and game engines—require explicit meshes composed of vertices and triangles.
The standard bridge between these representations is the Marching Cubes algorithm. Unfortunately, Marching Cubes is non-differentiable, preventing backpropagation from a mesh-based loss function to the underlying neural representation. Previous attempts to address this were often restricted to low resolutions or fixed topologies.
Methodology: Differentiable Geometry
MeshSDF introduces a custom backward pass that bypasses the discrete steps of Marching Cubes. The core insight is that one does not need to differentiate the extraction algorithm itself if the relationship between the implicit field ($s$) and the resulting geometry ($\mathbf{v}$) is known.
The authors prove that the derivative of a surface sample with respect to the field is the negative of the surface normal: $$\frac{\partial \mathbf{v}}{\partial s}(\mathbf{v}) = -\mathbf{n}(\mathbf{v})$$
The MeshSDF Pipeline
- Forward Pass: A standard, non-differentiable Marching Cubes extracts a mesh from the deep SDF.
- Loss Calculation: A task-specific loss (e.g., silhouette matching or aerodynamic drag) is computed on the explicit mesh.
- Backward Pass: Gradients are passed from mesh vertices back to the latent code or network weights using the derived closed-form expression.
Experimental Evaluation
The authors validated MeshSDF across three domains: ShapeNet Core for Single-View Reconstruction (SVR), Pix3D for real-world chair images, and a custom CFD dataset for aerodynamic optimization of car models.
Key Results
- Reconstruction Accuracy: On ShapeNet, MeshSDF improved IoU by 12% over non-refined baselines, outperforming state-of-the-art methods like DISN and Pixel2Mesh.
- Aerodynamic Design: MeshSDF optimized car shapes to a relative drag coefficient of 0.675, significantly better than engineering parameterizations like FreeForm (0.844).
- Computational Efficiency: The implementation is roughly 4x faster than competing differentiable rendering methods like sphere tracing, requiring 3.4x fewer network queries.
Discussion and Conclusion
MeshSDF's primary advantage is its ability to handle topological changes—such as merging parts or creating holes—naturally within the implicit representation. Furthermore, the deep implicit field acts as a semantic prior, ensuring that optimized shapes (like low-drag cars) remain physically plausible rather than becoming "adversarial" geometries.
While powerful, the method can be susceptible to local minima during optimization. Additionally, while the representation is continuous, the final mesh resolution remains constrained by the Marching Cubes grid. Future work may involve integrating MeshSDF with GANs or exploring semi-supervised learning from 2D images.
Summary updated