TL;DR
This paper introduces a novel differentiable voxelization method for 3D meshes, leveraging winding numbers and solid angles for fast, flexible, and accurate conversion to voxel grids. This approach enables gradient computation with respect to the mesh, paving the way for mesh-level deep learning tasks like morphing and reconstruction, achieving state-of-the-art results on the ShapeNet dataset.
What Problem Does This Paper Address?
Converting 3D meshes into voxel grids is a crucial preprocessing step for many 3D deep learning applications, including reconstruction, rendering, and generative modeling. However, existing voxelization methods, often CPU-bound and based on rasterization or boolean operations, are computationally expensive, lack accuracy, and struggle with non-watertight meshes or complex topologies. This limits the development of high-resolution 3D deep learning models. Furthermore, the lack of differentiability in these methods prevents direct optimization of mesh properties through voxel-based representations, hindering tasks like mesh morphing where gradients are essential for deforming a mesh towards a target shape.
Methods
The core contribution is a differentiable voxelization algorithm that operates on 3D meshes to produce voxel occupancy. This method is built upon two key concepts:
- Generalized Winding Number: This topological concept determines how many times a surface "winds" around a point. For a closed surface, the winding number is equivalent to the voxel's occupancy. The paper formulates this using an integral over the mesh faces.
- Solid Angles: To overcome the accuracy limitations of naive winding number calculations, especially near mesh boundaries and for irregular meshes, the authors incorporate solid angles. The solid angle of a mesh face at a query point provides a more robust measure of its contribution to the occupancy. The paper leverages the mathematical equivalence between solid angles and winding numbers.
A crucial aspect is the GPU acceleration of these computations, making the voxelization process significantly faster. The authors also address the challenge of non-watertight meshes by proposing a "flipping duplication" technique. This method creates a slightly offset, closed version of an open mesh, allowing the differentiable voxelization to process it effectively. The use of ATAN2 instead of arctan is highlighted for achieving near-binary occupancy and avoiding gradient vanishing issues.
Datasets
The paper evaluates its method on the ShapeNet dataset. While not explicitly stated as a new benchmark, the authors use it to demonstrate state-of-the-art performance in the mesh-to-occupancy task. They also mention using selected meshes from existing repositories like [10] and [6] for experiments.
Key Insights and Ideas
- Differentiability is Key for Mesh Manipulation: The most significant insight is that making voxelization differentiable unlocks powerful mesh-level deep learning applications. By allowing gradients to flow back to the mesh, tasks like morphing and reconstruction become optimizable end-to-end.
- Solid Angles for Robustness: The shift from a purely winding number-based approach to incorporating solid angles is crucial for handling the complexities of real-world 3D meshes (irregularities, sharp edges) and achieving higher accuracy.
- GPU Acceleration for Practicality: The implementation's reliance on GPU makes the method practical for high-resolution voxelization, a bottleneck in previous approaches.
- Flipping Duplication for Open Meshes: The simple yet effective "flipping duplication" technique elegantly handles a common problem in 3D modeling (open meshes), making the voxelization pipeline more robust.
- Trade-off Between Accuracy and Gradients: The authors acknowledge that while their method achieves high accuracy, the resulting near-binary occupancy can lead to vanishing gradients. They propose using the less accurate but more gradient-friendly winding number formulation (Eq. 4) in specific scenarios like medical image reconstruction, highlighting a practical trade-off.
Key Results
- State-of-the-Art Performance: The proposed differentiable voxelization achieves state-of-the-art performance in terms of both accuracy (measured by Chamfer and Hausdorff distances) and efficiency on the ShapeNet dataset for the mesh-to-occupancy task.
- Speed and Flexibility: The GPU-accelerated method is fast and flexible, capable of handling arbitrary sampling resolutions and non-watertight meshes.
- Mesh Morphing Success: The paper demonstrates the application of their method in mesh morphing, showing its ability to deform meshes towards target segmentations (e.g., a human heart) by leveraging the computed gradients.
- Quantitative Improvements: Tables in the paper show significant improvements in Chamfer and Hausdorff distances compared to baseline methods like "Scan," "Sample," and DOGN across various resolutions (32 to 256). For instance, at resolution 256, their method consistently achieves lower error metrics.
Limitations and Future Work
- Gradient Vanishing: As mentioned, the high accuracy of the voxelization can lead to vanishing gradients, which might require using alternative formulations (like the original winding number) for certain applications where gradient flow is critical.
- Computational Cost: While GPU-accelerated, the computation time is still related to the number of mesh faces and the GPU memory. For extremely complex meshes or limited resources, processing time can grow significantly.
- Future Directions: The authors suggest that their differentiable voxelization is not limited to mesh morphing but can be incorporated into other mesh-level optimization and deep learning tasks such as mesh segmentation, classification, and generation. The work also lays the foundation for 3D mesh reconstruction from 2D medical scan images.
Summary updated