Documentation / Node reference / code nodes

code/SDFElongate

Stretches a field by collapsing a box onto the origin.

Sdf3d

Folds a sampled position so that whatever primitive reads it comes out stretched: a sphere becomes a capsule, a box a longer box, and the stretch keeps the original's rounding intact rather than scaling it. Stretching along more than one axis at once is allowed, and gives a shape swept along a rectangle rather than a segment. The twin of geo/SDFElongate, for use inside a geo/SDFBuilder sub-network.

Parameters

Name Type What it does
P Vector3 Position to fold. Left unwired it reads the builder's own sample position.
size Vector3 How far the shape is stretched on each axis, in total: half of it either side of the center. A negative reads as 0.

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.