makeCurve(spec) builds a function of t from 0 to 1 for a curve spec: a Catmull-Rom spline through points (closed joins the ends) or a helix. The tube node sweeps along it.
makeCurve(spec)
t
0
1
closed
tube