Abstract
Partitioning a polygonal mesh into meaningful parts can be challenging. Many applications require decomposing such structures for further processing in computer graphics. In the last decade, several methods were proposed to tackle this problem, at the cost of intensive computational times. Recently, machine learning has proven to be effective for the segmentation task on 3D structures. Nevertheless, these state-of-the-art methods are often hardly generalizable and require dividing the learned model into several specific classes of objects to avoid overfitting. We present a data-driven approach leveraging deep learning to encode a mapping function prior to mesh segmentation for multiple applications. Our network reproduces a neighborhood map using our knowledge of the Shape Diameter Function (SDF) method using similarities among vertex neighborhoods. Our approach is resolution-agnostic as we downsample the input meshes and query the full-resolution structure solely for neighborhood contributions. Using our predicted SDF values, we can inject the resulting structure into a graph-cut algorithm to generate an efficient and robust mesh segmentation while considerably reducing the required computation times.
Introduction: The Speed vs. Generalization Trade-off
Mesh segmentation—the process of decomposing a 3D model into semantically meaningful parts—is a fundamental task in computer graphics. Historically, researchers relied on the Shape Diameter Function (ShDF), which measures local thickness. While robust, ShDF is computationally expensive due to complex ray-casting and medial axis transforms.
Modern deep learning models like MeshCNN or PointNet attempt to solve segmentation directly but often struggle to generalize across different object classes and are highly sensitive to mesh resolution. Neural ShDF addresses this by using a neural network to approximate ShDF values, which are then processed by a controllable graph-cut algorithm, balancing the speed of AI with the reliability of traditional geometry.
Methodology: The Encoder-Messenger-Decoder (EMD) Framework
The core of this approach is the Encoder-Messenger-Decoder (EMD) network, designed to be resolution-agnostic.
- Resolution-Agnostic Processing: The system downsamples input meshes via Poisson disk sampling but maintains "full-resolution neighborhoods" during the messaging stage. This ensures the network learns local geometric features regardless of the overall triangle count.
- Predicting ShDF: Instead of direct classification, the network learns to predict the ShDF value for each vertex as a proxy for local volume. Thickness is a universal property that translates across object classes better than semantic labels.
- Hybrid Segmentation: Predicted ShDF values are fed into a $k$-way graph-cut algorithm (accelerated via NVIDIA’s nvGRAPH). This allows users to adjust parameters like the number of clusters ($k$) after inference, providing artistic control.
- Refinement: An optional recursive refinement and a post-processing "alpha expansion" smoothing pass ensure boundaries follow natural mesh contours.
Experimental Results
The model was evaluated on standard benchmarks (COSEG, HBS), a humanoid dataset (ACG), and professional "production-ready" assets from TurboSquid (TS).
- Speed: The neural approach achieves a 10x speedup over the traditional 2008 ShDF baseline. A 1.3M face model is processed in approximately 35 seconds.
- Accuracy: On the varied TurboSquid dataset, Neural ShDF achieved 86.6% accuracy, significantly outperforming MeshCNN (72.8%) and PointNet++ (61.2%).
- Robustness: The method remains effective even when meshes are simplified or tessellated, proving its resolution-agnostic nature.
Conclusion and Future Work
Neural ShDF demonstrates that machine learning is most effective when used to accelerate proven geometric pipelines rather than replacing them entirely. While the network requires a diverse training set to handle irregular topologies, it offers a flexible, high-performance workflow for 3D artists. Future work will explore stacked networks to further automate the refinement process and additional GPU optimizations for adaptive mesh queries.
Summary updated