Documentation / Node reference / code nodes
code/SDFBend
Bends a position around a cylinder.
Sdf3d
Bends a position around a cylinder of radius 1 / rate, so a shape that reads it comes out bent. A shape along X curves toward Z, along Y toward X, along Z toward Y. Use it inside a geo/SDFBuilder.
Parameters
| Name | Type | What it does |
|---|---|---|
| axis | UInt8 X · Y · Z | The axis the shape runs along. |
| thickness | Float | Shape thickness across the bend. Too small can miss surfaces. |
| limited | Bool | Bend only between limitMin and limitMax. |
| P | Vector3 | Position to bend. Defaults to the sample position. |
| center | Vector3 | The point that stays in place. |
| rate | Float | Curvature, 1 / radius. Negative bends the other way. |
| limitMin | Float | Start of the bent band, from center. |
| limitMax | Float | End of the bent band, from center. |
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.