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.
- r, g, b, distance
Enums§
- Assembly. Lower level representation.
Traits§
Functions§
- Marches a ray from
t_range.start()
untilt_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