Umbrella shape of mathematical graphics

Source: Internet
Author: User

It has been raining a few days ago, and today it is finally Sunny. We use algorithms to generate an umbrella image to celebrate.

An umbrella can be seen as an Arc Surface, usually with eight or six umbrella bones. Create an Arc Surface with 8 points first.

Script code:

Vertices = dimension1: 8 dimension2: 16u = from 0 to (2 * PI) dimension1v = from (pI * 0.25) to (pI * 0.5) dimension2x = cos (V) * sin (u) y = sin (v) z = cos (v) * Cos (u) A = 10.0x = A * xy = A * YZ = A * z

The generated image is as follows:

A simple umbrella is generated, but the actual umbrella is more complicated. OK continues to be optimized. The cosine curve is used to highlight the umbrella bone in the next step:

Vertices = dimension1: 256 dimension2: 16u = from 0 to (2 * PI) dimension1v = from (pI * 0.2) to (pI * 0.5) dimension2s = 1.0-0.12 * ABS (COS (u * 4) x = cos (v) * sin (u) * Sy = sin (v) z = cos (V) * Cos (u) * Sa = 10.0x = A * xy = A * YZ = A * z

The generated image is as follows:

For more information about related software, see: Mathematical graphics visualization tool. Use script code with custom syntax to generate mathematical graphics. This software is free open source. QQ chat group: 367752815

Umbrella shape of mathematical graphics

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.