Judging the similarity of part shapes