Mathematical graphics (2.16) three-dimensional spiral

Source: Internet
Author: User

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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.