Change "stick angle" to twist the right ring, twisting the cylinder of sticks into a hyperboloid. "Rotate cylinder" horizontally. Uses minimal code. Sine and cosine for two circles connected by sticks at "stick angle."
Twisting a ring puts sticks into an angle, forming a circular hyperboloid (or "rotational paraboloid"). The range of shapes, from cylinder to fully twisted, all are made of straight sticks, all "ruled surfaces." See also my hyperbolic paraboloid, another "ruled surface" for our course on parabolas and paraboloids.