Matching profiles of mating parts