Expand description
Signed distance field function compiler/interpreter/discretizer/mesher.
Modules§
Structs§
- Bounding
Box - A 3-dimensional axis-aligned bounding box
- CodeGen
- Code
GenContext - Constant
Editor - Constant
Reader - Example
Params - Allows you to animate and play with the example scene.
- Graph
- A high-level definition of a signed distance field function
- Grid3
- Stores values on a 3D cube lattice on the coordinates [0,0,0] - [w-1, h-1, d-1]. A 3D tensor, basically.
- Interpreter
- Interpreter
Context - Marching
Cubes - Material
- Mesh
Options - NodeId
- Program
- Represents a signed distance field function as a program with a constant pool and opcodes.
- RgbWith
Distance - r, g, b, distance
- Triangle
Mesh - Vertex
Enums§
Traits§
Functions§
- compile
- constants_
hash - decompile
- disassemble
- gather_
colors_ in_ place - get_
glsl_ sdf_ interpreter_ code - get_
glsl_ sdf_ library_ code - march
- 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. - mesh_
from_ sdf - mesh_
from_ sdf_ func - mesh_
from_ sdf_ program - opcodes_
hash - sd_
biconvex_ lens - sd_
capsule - sd_cone
- sd_
cone_ f - Base at origin, with height
h
along positive Y. - sd_
material - sd_
op_ intersect - sd_
op_ intersect_ smooth - sd_
op_ subtract - sd_
op_ subtract_ smooth - sd_
op_ union - sd_
op_ union_ smooth - sd_
plane - sd_
rounded_ box - sd_
rounded_ cylinder - sd_
rounded_ cylinder_ f - sd_
sphere - sd_
tapered_ capsule - sd_
tapered_ capsule_ f - sd_
torus - sd_
torus_ sector - sdf_
bb_ and_ resolution - Pick a good expanded bounding box and grid size from the given tight bounding box
- surface_
distance_ to - to_
sd_ func - transform_
positions_ in_ place