gives the minimum distance from the point p to the region reg if p is outside the region and the minimum distance to the complement of reg if p is inside the region.
Examplesopen allclose all
Basic Examples (2)
Find the signed distance from a point to a MeshRegion:
With one argument, you get a RegionDistanceFunction: