Signed Distance Functions (SDF)

The signed distance function

The signed distance function (SDF) is a lesser-known but elegant 3D data representation. While PyTorch3D doesn’t directly implement signed distance functions, they’re becoming more popular due to a few interesting properties.

What is a signed distance function?

A signed distance function (SDF), is a mathematical expression of a 3D scene that computes the distance dd between a given point pp and a surface in a given space. The SDF is a function that takes a position pp as an input and returns a scalar value dd, with positive values representing distances outside the surface and negative values representing distances inside the function. This is where it gets the name signed distance function.

Get hands-on with 1200+ tech skills courses.