No matching definitions.

sdf/repeat

src/sdf/repeat.tur

domain repetition operations for SdfExpr trees.

Since: Phase 5

defn

sdf-repeat-inf

(sdf-repeat-inf [child : int px : float py : float pz : float] :)

infinite domain repetition of a child SDF.

childSdfExpr handle to repeat
px py pz -- repetition period per axis (0 = no repetition)

SdfExpr handle for the infinitely repeated shape.

(sdf-repeat-inf (sdf-sphere 0.0 0.0 0.0 0.3) 1.0 1.0 1.0)

Since: Phase 5

defn

sdf-repeat-fin

(sdf-repeat-fin [child : int px : float py : float pz : float lx : float ly : float lz : float] :)

finite domain repetition of a child SDF.

childSdfExpr handle to repeat
px py pz -- repetition period per axis (0 = no repetition)
lx ly lz -- limit (number of cells on each side of the origin)

SdfExpr handle for the finitely repeated shape.

(sdf-repeat-fin (sdf-sphere 0.0 0.0 0.0 0.3) 1.0 1.0 1.0  3.0 3.0 3.0)

Since: Phase 5