for measuring contours or curvatures