tube.procNode
- .metadata130 B
- README.md911 B
- init.luau997 B
- tube.module
This package holds more than this page lists. See all of its files in its world.
README.md
shape.tube
A circle swept along a curve: pipes, springs, hoses and headers.
In a scene: TubeGeometry(path, tubularSegments, radius, radialSegments, closed).
| Input | Default | Meaning |
|---|---|---|
curve | {} | The curve: { type = 'catmullrom', points = {...} } or { type = 'helix', radius, turns, height }. CatmullRomCurve3 and HelixCurve write them. |
tubularSegments | 64 | Segments along the curve. |
radius | 1 | The radius of the tube. |
radialSegments | 8 | Segments around the tube. |
closed | false | Whether the curve closes on itself. |
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.
TubeGeometry(CatmullRomCurve3({ Vector3(0, 0, 0), Vector3(1, 0.4, 0), Vector3(2, 0, 0) }), 48, 0.05, 8)