for (var t = 0, x, y, z; t <= 30; t+= 0.1){ x = a*Math.cos( t ); y = a*Math.sin( t ); z = b*t; geometry.push( new Vector3( x, y, z ) ); }