A computer-implemented method for determining a local deviation of a geometry of an object from a target geometry of the object from a digital representation of the object, wherein the object representation comprises a plurality of items of image information of the object, wherein an item of image information indicates a value of a measured variable for the object at a defined position of the object, wherein the method comprises the following steps:
- ascertaining the object representation,
- ascertaining a distance field from the items of image information of the object representation, wherein the distance field comprises a plurality of distance values, wherein a distance value for a specific point of the distance field specifies the shortest spacing of the point to a closest material boundary surface of the geometry of the object,
- ascertaining the target geometry of the object,
- registering the target geometry of the object on the material boundary surfaces of the geometry of the object specified by the distance values, and
- ascertaining the local deviation of the geometry of the object from the target geometry of the object at a test point on a material boundary surface predetermined by the target geometry by reading out the distance value of the distance field at the position of the test point.