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.
Parameters
| child | SdfExpr handle to repeat | |
| px py pz -- repetition period per axis (0 = no repetition) |
Returns
SdfExpr handle for the infinitely repeated shape.
Example
(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.
Parameters
| child | SdfExpr 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) |
Returns
SdfExpr handle for the finitely repeated shape.
Example
(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