Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit098ece8e9e

README.md

shape.tube

A circle swept along a curve: pipes, springs, hoses and headers.

In a scene: TubeGeometry(path, tubularSegments, radius, radialSegments, closed).

InputDefaultMeaning
curve{}The curve: { type = 'catmullrom', points = {...} } or { type = 'helix', radius, turns, height }. CatmullRomCurve3 and HelixCurve write them.
tubularSegments64Segments along the curve.
radius1The radius of the tube.
radialSegments8Segments around the tube.
closedfalseWhether 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)