Documentation / Node reference / code nodes
code/SDFTPMS
Returns the distance to a gyroid lattice, or another minimal surface.
Sdf3d
Returns the distance to a saddle-shaped surface repeated along all three axes, as a wall or a solid. thickness and level can vary across space, for walls thicker near a load. To grow the cells, use grading: a cell that varies across space stretches the walls. blend turns type into blendType.
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. |
| blendType | UInt8 GYROID · SCHWARZ_P · SCHWARZ_D · NEOVIUS · LIDINOID · SPLIT_P · FISCHER_KOCH_S | Which surface the lattice turns into at blend 1. |
| form | UInt8 SHEET · SOLID | A wall along the surface, or one channel filled. |
| coordinates | UInt8 CARTESIAN · CYLINDRICAL · SPHERICAL | How the cells are laid out. |
| grading_Cartesian | UInt8 NONE · X · Y · Z | Which cell size grows along its own axis. |
| grading_Cylindrical | UInt8 NONE · X · Y | Which cell size grows: along the radius or the axis. |
| grading_Spherical | UInt8 NONE · X | Whether the cells grow along the radius. |
| P | Vector3 | Where to sample. Unwired, the builder's sample position. |
| cell | Vector3 | Cell size per axis. Wrapped, x is along the radius. |
| thickness | Float | Thickness of the wall. |
| level | Float | Moves the solid's skin out, or in when negative. |
| cellsAround | UInt32 | Cells in one turn around the Y axis. |
| cellsPoleToPole | UInt32 | Cells from one pole to the other. |
| blend | Float | 0 is all type, 1 all blendType. |
| blendSlope | Float | Steepest slope of blend. Keeps blended walls thick enough. |
| gradeStart | Float | Where the grade starts. Cells there are cellStart across. |
| gradeEnd | Float | Where the grade ends. Cells there are cellEnd across. |
| cellStart | Float | Cell size at gradeStart. |
| cellEnd | Float | Cell size at gradeEnd. |
Examples
Scenes you can open in the editor that teach this node.
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.