shape.nodebox
- ..
- .metadata123 B
- README.md1.0 KB
- cylinder.module
- init.luau979 B
This package holds more than this page lists. See all of its files in its world.
README.md
shape.cylinder
A cylinder along Y, capped, with different radii at its two ends: a cone when one is 0. The fifth argument of CylinderGeometry and the fourth of ConeGeometry is heightSegments, in the place three.js has it; the side is one band.
In a scene: CylinderGeometry(radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded) and ConeGeometry(radius, height, radialSegments, heightSegments, openEnded).
| Input | Default | Meaning |
|---|---|---|
radiusTop | 1 | The radius of its top. |
radiusBottom | 1 | The radius of its bottom. |
height | 1 | Its length along Y. |
radialSegments | 32 | How many sides it has round. |
openEnded | false | Whether the top and bottom are left open, as a pipe or a liner. |
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.
CylinderGeometry(0.3, 0.5, 1.4, 24):bend(0.5)