Start here

Four examples that show the library’s three kinds of geometry and the calls every program makes: analytic shapes, a composition compiled into a tape (composed in C++, or read from a model file at run time), and a mesh read from a file. Each runs on the host and, built for a GPU, on the device.

  • Shapes: the analytic shapes, their signed distance, bounding box and distance quality.

  • Basic CSG: the classic CSG solid, with unions, intersections and differences, compiled into a Tape.

  • Language CSG: the same solid written in the .ebg language and read at run time, with no compiling to change it.

  • MeshSDF: reading a surface mesh into a signed distance function, and the three representations to choose from.