Learning and exploring the compositional structure of 3D data