Documentation / Node reference / code nodes

code/SDFMirror

Folds a position so that whatever reads it comes out symmetric.

Sdf3d

Folds a sampled position across the chosen axis planes, all of which pass through center, so a primitive reading the folded point comes out mirrored. Only the positive side of each folded axis survives: it is what gets copied to the other side. Wire this into a primitive's position input. The twin of geo/SDFMirror, for use inside a geo/SDFBuilder sub-network.

The fold is an isometry, so the field it feeds is still a true distance and the march is not stepped down for it.

Parameters

Name Type What it does
mirrorX Bool Fold across the YZ plane (x = center.x).
mirrorY Bool Fold across the XZ plane (y = center.y).
mirrorZ Bool Fold across the XY plane (z = center.z).
P Vector3 Position to fold. Left unwired it reads the builder's own sample position.
center Vector3 The point all three fold planes pass through.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.