1 // Parametric curves, to be used as paths
2 // Licensed under the MIT license.
3 // © 2010 by Elmo Mäntynen
5 include <constants.scad>
9 /* A circular helix of radius a and pitch 2πb is described by the following parametrisation:
16 function b(pitch) = pitch/(TAU);
17 function t(pitch, z) = z/b(pitch);
19 function helix_curve(pitch, radius, z) =
20 [radius*cos(deg(t(pitch, z))), radius*sin(deg(t(pitch, z))), z];