Add the computation of the distance between a point and a surface.