Introduction
Primitive segmentation—the process of decomposing complex 3D objects into basic geometric shapes like planes, cylinders, and spheres—is a fundamental task in 3D computer vision and robotics. Traditional approaches often struggle with complex geometries or require massive amounts of labeled 3D data, which is expensive and time-consuming to produce.
Segment Any Primitive (SAP) introduces a zero-shot framework designed to partition 3D point clouds into geometric primitives without any 3D-specific training. By leveraging the power of 2D foundation models, SAP bridges the gap between raw geometric data and semantic understanding.
Methodology
The SAP framework operates through a multi-stage pipeline that translates 3D geometry into a format understandable by 2D vision models, then back-projects that intelligence into 3D space.
1. Point-to-Image Synthesis
Since SAP is zero-shot and does not rely on real-world images, it generates its own visual data. The input point cloud is reconstructed into a mesh and rendered from 12 distinct viewpoints. Instead of standard RGB color, SAP renders surface normals and curvature. This dual-feature rendering is critical for highlighting sharp edges and subtle geometric transitions that define primitive boundaries.
2. Hybrid Affinity Graph Construction
The rendered images are processed by the Segment Anything Model 2 (SAM2) to generate 2D masks. These masks are then back-projected onto the original 3D points. SAP constructs a graph where points are nodes, and edges represent a "Hybrid Affinity" score. This score combines:
- Semantic Affinity: Consistency of point groupings across different 2D views.
- Geometric Affinity: Spatial proximity and similarity in surface normals and curvature.
3. Instance Clustering and Semantic Labeling
A threshold-adaptive clustering algorithm groups points into distinct instances based on the hybrid affinity graph. To assign semantic labels (e.g., "cone", "cylinder"), SAP uses a multi-view voting mechanism. Each instance's 2D projections are cropped and passed through a CLIP visual encoder, which compares them against text embeddings of primitive types to find the best match.
Experimental Results
SAP was evaluated against several benchmarks, including ABCPart (CAD models), ANSI (mechanical parts), and real-world indoor/outdoor scenes.
- State-of-the-Art Performance: SAP achieved an Instance Segmentation IoU of 78.4% on ABCPart and 81.5% on ANSI. Remarkably, it outperformed the supervised HPNet on the ANSI dataset by 1.0%, demonstrating superior generalization to unseen mechanical geometries.
- The Importance of Normals: Ablation studies highlighted that surface normals are the most significant feature for primitive detection. Removing normal vectors from the affinity calculation resulted in a 40.8% drop in IoU.
- Robustness to Noise: The framework showed high resilience to sensor noise. Even with significant Gaussian noise added to the input, SAP maintained an IoU above 70%, making it suitable for real-world LiDAR data.
Conclusion and Future Work
Segment Any Primitive demonstrates that 2D foundation models like SAM2 and CLIP contain latent geometric knowledge that can be effectively harvested for 3D tasks. By relying on fundamental geometry rather than labeled 3D datasets, SAP offers a scalable and robust solution for robotic perception. Future research will focus on reducing the dependency on high-quality mesh reconstruction and integrating the framework directly into robotic grasping and manipulation pipelines.
Summary updated