Conch and shells in mathematical graphics

Source: Internet
Author: User

The previous section describes spiral tubes and conch tubes. likewise, shells have a spiral. this section provides several algorithms for generating conch and shells. when it comes to conch, it reminds me that my university is on the beach. When I leave the east campus, it is the sea, and even the school dormitory is a sea view room. I also like conch and shells. After all, their meat is delicious.

For related software, see: Mathematical graphics visualization tool. Use script code with custom syntax to generate mathematical graphics.

(1) conchoid)

vertices = dimension1:160 dimension2:160u = from 0 to (6*PI) dimension1v = from 0 to (2*PI) dimension2k = 1.2a = 1.5w = (k^u) * (1+cos(v))x = w*cos(u)y = w*sin(u)z = (k^u)*sin(v) - (k^u)*a

(2) Sea-shell

vertices = dimension1:1000 dimension2:72u = from 0 to (20*PI) dimension1v = from 0 to (2*PI) dimension2m = -0.09k = 3a = 1b = 1e = pow(E, m*u)w = (a + b*cos(v))*ex = w*cos(u)z = w*sin(u)y = (k*a + b*sin(v))*e

(3) Sea-shell (random)

A random number is used in the script.

vertices = dimension1:1000 dimension2:72u = from 0 to (32*PI) dimension1v = from 0 to (2*PI) dimension2m = -1/(rand_int2(2, 100))k = rand2(1, 100)a = 1b = rand2(0.5, 2)e = pow(E, m*u)w = (a + b*cos(v))*ex = w*cos(u)z = w*sin(u)y = (k*a + b*sin(v))*e

(4) angle screw

This is a script that I wrote at will during my own test. The name of the slot is also random.

vertices = dimension1:36 dimension2:72a = from 0 to (2*PI) dimension1b = from (-PI*0.5) to (PI*0.5) dimension2r = 10.0x = r*cos(b)*sin(a)y = r*sin(b)*sqrt(a)z = r*cos(b)*cos(a)u = av = b*2

(5) parrot

vertices = D1:720 D2:72p = from 0 to (3*PI) D1q = from 0 to PI D2r = 1.2^p * sin(q) * 5x = r * sin(q) * sin(p)y = r * sin(q) * cos(p)z = r * cos(q)u = pv = q*3

(6) Shell 1

vertices = dimension1:100 dimension2:100u = from 0 to (2*PI) dimension1v = from 0 to (PI) dimension2r = sin(v)*pow(E, -u)x = r*sin(v)*sin(u)y = r*cos(v)z = r*sin(v)*cos(u)

(7) Shell 2

vertices = dimension1:100 dimension2:100u = from 0 to (PI*2) dimension1v = from 0 to (PI) dimension2r = sin(v)*sin(v)*pow(E, -u)x = r*sin(v)*sin(u)y = r*cos(v)z = r*sin(v)*cos(u)

 

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.