The Digital Ruler That Can Measure Curved Surfaces