In general, it is the curve around the circle. I have previously written some chapters on the Two-Dimensional Spiral mathematical graphics (1.12) Screw line. This section describes the three-dimensional screw line. in fact, to convert two-dimensional data to three-dimensional data, you only need to add one-dimensional data. the new one-dimensional data can be generated in a variety of ways, so that the thread can be posted on the spherical surface, on the cone surface, on the cylindrical surface, and on the parabolic surface. in this way, the types of three-dimensional nuts are n times that of 2D nuts. here, I only use the Archimedes screw line as an example to post it to the sphere, cylinder, cone, and parabolic.
(1) Ball Nut
In the previous chapter, I also wrote a mathematical drawing (2.10) winding around the ball. This is the Ball Nut.
vertices = 3600w = from 0 to 32a = mod(w, 1) * 2 * PIb = from 0 to PIr = 10.0x = r*sin(a)*sin(b)y = r*cos(a)*sin(b)z = r*cos(b)
(2) cylindrical spiral
vertices = 32000t = from 0 to (2*PI)w = rand_int2(2, 32)a = rand2(1, 10)b = rand2(1, 10)c = rand2(1, 10)x = a*cos(w*t)z = b*sin(w*t)y = c*t
(3) cone spiral
vertices = 32000t = from 0 to (2*PI)w = rand_int2(2, 32)a = rand2(1, 10)b = rand2(1, 10)c = rand2(1, 10)x = a*t*cos(w*t)z = b*t*sin(w*t)y = c*t
(4) parabolic spiral
vertices = 32000t = from 0 to (2*PI)w = rand_int2(2, 32)a = rand2(1, 10)b = rand2(1, 10)c = rand2(1, 10)x = a*t*cos(w*t)z = b*t*sin(w*t)y = c*t*t