Parametric chamfer alignment based on mesh deformation