The method of solving mesh gradient

Source: Internet
Author: User

Starting with the Alec Jacobson code, the G here is a #face*dim by #V, so the result is calculated by the face, then the dim is the component of x, Y, Z, respectively.

On the theory of gradient finding, see
http://blog.csdn.net/seamanj/article/details/52070611
Just say here put e1h1 e 1 h 1 \frac{e_1}{h_1} According to the high-line properties (see HTTP://BLOG.CSDN.NET/SEAMANJ/ARTICLE/DETAILS/52075447), split into a e1h1= −e2h2−e3h3 e 1 H 1 =−e 2 H 2−e 3 h 3 \frac{e_1}{h_1} =-\frac{e_2}{h_2}-\frac{e_3}{h_3}

Analysis of the matrix composition of the code, the simplest assumption that there is only one triangle, then

I:1 1 1 1 2 2 2 2 3 3 3 3
J:2 1 3 1 2 1 3 1 2 1 3 1
V:E2H2 e 2 H 2 \frac{e_2}{h_2}−e2h2−e 2 H 2-\frac{e_2}{h_2} e3h3 E 3 H 3 \frac{e_3}{h_3}−e3h3−e 3 H 3-\frac{e_3}{ H_3}

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.