Expand description
Signed distance field function compiler/interpreter/discretizer/mesher.
Modules
Structs
A 3-dimensional axis-aligned bounding box
Allows you to animate and play with the example scene.
A high-level definition of a signed distance field function
Stores values on a 3D cube lattice on the coordinates [0,0,0] - [w-1, h-1, d-1].
A 3D tensor, basically.
Represents a signed distance field function as a program with a constant pool and opcodes.
A ray in 3-dimensional space: a line through space with a starting point and a direction.
r, g, b, distance
A 3-dimensional vector.
Enums
Traits
Functions
Marches a ray from
t_range.start()
until t_range.end()
,
returning the first hit, or the place where the trace got closest to the surface.Base at origin, with height
h
along positive Y.Pick a good expanded bounding box and grid size from the given tight bounding box