The probe 22 can be any suitable device, such as a touch probe which makes physical contact with the workpiece, or a laser device, video camera or other device which does not make physical contact with the workpiece, but recognizes the surfaces of the workpiece.