Function sketchConstraintDistance