detecting deformation from original shape