Link / the original website: https://jjuke-brain.tistory.com/entry/Signed-Distance-Function-SDF

(The following contents are partially translated from the original website)

TL; DR

A function that indicates how far a point is in a defined zone (+) or out (-)

A signed distance function (SDF) returns a single scalar for every point in space, and that number carries two pieces of information:

image.png

The surface itself is the zero level set, {p : f(p) = 0}.

For example, a sphere of radius r centered at c has the SDF f(p) = ‖p − c‖ − r.