where is a point on the mesh, is the surface of the mesh, and is the distance between two points. To find the

the maximum value out of all the calculated distances between each point and the approximated surface. The second value is the mean distance, which is defined as the surface integral of the distance divided by the area of the original surface: