L

libsdf

libsdf

A dead simple, no BS library to create grid-based Signed Distance Fields from arbitrary triangle meshes.

There are some restrictions:

  • The meshes must be supplied in .obj format
  • The meshes must be made up of triangle faces only
  • The meshes must include non-interpolated face normals
  • The meshes must be closed

The goal is to generate SDFs for collision detection and possibly ray-marching rendering. The first consumer will be libclsph so a key design goal is to allow use (but not necessarily creation) of the SDFs in OpenCL on the GPU.