Bayesian shape similarity based on 3D shape skeletons