Documentation / Node reference / code nodes

code/SDFTwist

Folds a position so that whatever reads it comes out spiralled about an axis.

Sdf3d

Turns a sampled position about `axis` by `rate` radians for every unit it sits along that axis, so a primitive reading the folded point comes out as a spiral. Wire this into a primitive's position input. The twin of geo/SDFTwist, for use inside a geo/SDFBuilder sub-network.

A turn that varies along the axis stretches distance where a plain turn does not, so the field this fold feeds is a bound rather than a distance and the builder steps its march down to suit it. How far down is worked out from `rate` and `radius`.

Parameters

Name Type What it does
axis UInt8 X · Y · Z Which world axis the fold spirals about.
radius Float How far from the axis the twisted shape reaches. It draws nothing: the builder's march reads it, with the rate, to work out how far it may trust a step. Too small and a hard twist can be stepped through.
P Vector3 Position to fold. Left unwired it reads the builder's own sample position.
center Vector3 The point the axis passes through: both the line the fold turns about and the plane where the twist is zero.
rate Float Radians of turn per unit along the axis. The sign is the handedness, so a negative rate spirals the other way.

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.