Documentation / Node reference / code nodes

code/SDFTPMS

The distance to a lattice of triply periodic minimal surfaces, the gyroid and its relatives.

Sdf3d

Returns the signed distance from a sampled position to a lattice of saddle-shaped surfaces that repeat along all three axes. The twin of geo/SDFTPMS, for use inside a geo/SDFBuilder sub-network, where `cell`, `thickness` and `level` can be wired: drive the thickness from a distance to make the walls thicker near a load, or the level to grade a solid lattice from dense to open.

SHEET makes a wall of `thickness` along the surface with both channels open; SOLID fills one channel, its skin moved out by `level`. Both are real distances, measured along the surface, so a wall comes out as thick as you ask (see geo/SDFTPMS for how close).

A wired cell size that changes across space stretches the lattice between cells, and the walls with it. Keep it changing slowly compared with the cell itself.

Parameters

Name Type What it does
type UInt8 GYROID · SCHWARZ_P · SCHWARZ_D · NEOVIUS · LIDINOID · SPLIT_P · FISCHER_KOCH_S Which surface the lattice is made of.
form UInt8 SHEET · SOLID SHEET makes a wall along the surface with both channels open. SOLID fills one channel and leaves the other empty.
P Vector3 Position to sample the field at. Left unwired it reads the builder's own sample position.
cell Vector3 Size of one repeat of the lattice along each axis.
thickness Float Thickness of the wall, as a distance. Used by the SHEET form.
level Float How far the skin of the SOLID form is moved out from the surface, as a distance. Positive makes the solid fatter, negative thinner.

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.