lathe.procNode
- .metadata142 B
- README.md733 B
- init.luau852 B
- lathe.module
This package holds more than this page lists. See all of its files in its world.
README.md
shape.lathe
A surface of revolution: a profile of { radius, y } points revolved around Y.
In a scene: LatheGeometry(points, segments).
| Input | Default | Meaning |
|---|---|---|
points | {} | The profile: a list of { radius, y } pairs. |
segments | 12 | Segments around the axis. |
phiStart | 0 | Where the revolution starts, in radians. |
phiLength | 2 pi | How far it revolves, in radians. |
The node answers geometry: a mesh with positions, normals and uvs. Its body is a call into the module in its own folder, so a graph of many parts cooks without a device dispatch per shape.
LatheGeometry({ Vector3(0, 0), Vector3(0.4, 0.1), Vector3(0.3, 0.8), Vector3(0, 1) }, 32)