k-Prototype Learning for 3D Rigid Structures