Home Knowledge Base Signed Distance Functions (SDF)

Signed Distance Functions (SDF)

Keywords: signed distance functions (sdf),signed distance functions,sdf,computer vision


Signed Distance Functions (SDF) are a mathematical representation of 3D geometry as distance to the nearest surface — defining shapes by storing the signed distance from any point in space to the closest surface point, with negative values inside and positive outside, enabling powerful geometric operations and high-quality surface representation.

What Is a Signed Distance Function?

SDF Formula:

SDF(p) = {
  -d  if p inside object
   0  if p on surface
  +d  if p outside object
}
where d = distance to nearest surface point

Why Signed Distance Functions?

SDF Properties

Metric Information:

Surface Normal:

Lipschitz Continuity:

Zero Level Set:

SDF Representations

Analytic SDF:

Discrete SDF:

Neural SDF:

Truncated SDF (TSDF):

Analytic SDF Examples

Sphere:

SDF(p) = |p - center| - radius

Box:

SDF(p) = max(|p.x| - size.x, |p.y| - size.y, |p.z| - size.z)

Plane:

SDF(p) = dot(p - point_on_plane, normal)

Torus:

q = (|p.xz| - major_radius, p.y)
SDF(p) = |q| - minor_radius

SDF Operations

Boolean Operations:

Smooth Boolean:

Transformations:

Deformations:

Applications

3D Reconstruction:

Ray Marching / Sphere Tracing:

Collision Detection:

Shape Generation:

Procedural Modeling:

SDF-Based Rendering

Sphere Tracing:

1. Start at ray origin. 2. Evaluate SDF at current position. 3. Step forward by SDF distance (safe, won't overshoot surface). 4. Repeat until close to surface (SDF ≈ 0) or max steps.

Soft Shadows:

Ambient Occlusion:

Neural SDF

DeepSDF:

Neural Implicit Surfaces:

Conditional Neural SDF:

Challenges

Computation:

Learning:

Topology Changes:

Thin Structures:

TSDF (Truncated SDF)

Definition:

KinectFusion:

1. Align depth map to volume. 2. Integrate depth into TSDF (weighted average). 3. Extract mesh via Marching Cubes.

Voxblox:

Quality Metrics

SDF Tools

Analytic SDF:

Discrete SDF:

Neural SDF:

Rendering:

SDF vs. Other Representations

SDF vs. Occupancy:

SDF vs. Meshes:

SDF vs. Voxels:

Future of SDF

Signed Distance Functions are a powerful geometric representation — they encode 3D shapes as continuous distance fields, enabling efficient rendering, robust reconstruction, and intuitive geometric operations, making them fundamental to modern computer graphics, vision, and robotics.


Source: ChipFoundryServicesSearch this topicAsk CFSGPT

signed distance functions (sdf)signed distance functionssdfcomputer vision

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.