NAME
tube — a tube along a path, with round ends
SYNOPSIS
tube(path, rad, sides=12, caps=True)
DESCRIPTION
Wraps a tube round a polyline: a ring of sides vertices at each point, square to the path's direction. Each ring's orientation is carried from the one before (a parallel transport frame), so the tube never twists. The triangles face outwards (the first version had them reversed, and only the round ends showed). Mochi's tail, both smiles and Onigiri's closed eyes are tubes.
PARAMETERS
path: the points, at least two. rad: one radius, or one per point. sides: vertices round each ring; 12 by default. caps: True for round ends (small balls); True by default.
RETURN VALUE
(V, N, I).
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
