Documentation / Node reference / code nodes

code/SDFStrutLattice

Returns the distance to a lattice of round struts.

Sdf3d

Returns the distance to round struts along the edges of a unit cell, repeated along all three axes. The radius can vary across space, for struts thicker near a load. A cell size that varies stretches the struts.

Parameters

Name Type What it does
type UInt8 SIMPLE_CUBIC · BODY_CENTRED_CUBIC · FACE_CENTRED_CUBIC · OCTET · KELVIN · DIAMOND Which unit cell the struts follow.
P Vector3 Where to sample. Unwired, the builder's sample position.
cell Vector3 Size of one cell along each axis.
radius Float Radius of every strut.
smoothness Float Rounds the joints where struts meet. 0 is sharp.

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.