Shape Segmentation Based on Learning of Deformation Models