Documentation / Node reference / code nodes
code/SDFRevolve
Folds a 3D sample into the profile plane of a lathe about the Y axis, spun or screwed.
Sdf3d
Turns a 3D sample position into the 2D point a lathe would sweep through it, so a 2D shape reading that point comes out revolved about Y. Wire this into a 2D primitive's position input and read that primitive's distance as the solid's. The twin of geo/SDFRevolve, for use inside a geo/SDFBuilder sub-network. The profile's plane X is the radial direction, measured out from the axis by `offset`, and its plane Y stays world Y.
Turn `helical` on and the fold screws rather than spins: the profile climbs `pitch` for every turn it makes, so whatever reads the folded point comes out as a thread. A negative pitch cuts a left-hand thread. Screwing stretches distance where spinning does not, so the field a helical fold feeds is a bound rather than a distance and the builder steps its march down to suit it.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector3 | Position to fold. Left unwired it reads the builder's own sample position. |
| offset | Float | How far out from the Y axis the profile's own origin sits: the radius the profile is swept at. |
| helical | Bool | Screw the profile instead of spinning it: it climbs by `pitch` every turn, which turns a ring into a thread. |
| pitch | Float | How far the profile climbs in one turn, read only when helical is on. The sign is the handedness: positive is a right-hand thread, negative a left-hand one. |
See also
- geo/SDFRevolve
- code/SDFExtrude
- code/SDFCircle2D
- code/SDFBoolean
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.