Parallel and Perpendicular, perpendicular

Source: Internet
Author: User

Parallel and Perpendicular, perpendicular

Question Link

  • Question:
    Enter n to obtain the number of diagonal 1 and diagonal 2 in the positive n edge shape (diagonal 1: At least parallel to the other diagonal; diagonal 2: At least perpendicular to the other diagonal ), the diagonal line cannot be the side of a polygon.
    (4 ≤ n ≤ 10e5)
  • Analysis:
    The number of sides in the center of two parallel edges must be the same, that is to say, when the two endpoints move several short points in one direction, they can get another parallel edge. That is to say, each side of a polygon is parallel (when the six sides are in the shape of a special case, they are processed separately)
    Vertical relatively troublesome: For n is an even number, we can obtain that each point of the n-3 side is a diagonal 2 (n is an even number, any diagonal line must divide the original graph into two Symmetric Graphs); when n is an odd number, there is no diagonal line 2 (only speculation)
int a[2][110];int main(){    int n;    a[0][4] = 0;    a[0][5] = 0;    a[0][6] = 6;    a[1][4] = 2;    a[1][5] = 0;    a[1][6] = 9;    while (~RI(n))    {        if (n <= 6)        {            printf("%d %d\n", a[0][n], a[1][n]);        }        else        {            cout << 1LL * (n - 3) * n / 2 << ' ';            if (n & 1) cout << 0 << endl;            else cout << 1LL * (n - 3) * n / 2 << endl;        }    }    return 0;}



3 what is the difference between Fresnel and Perpendicular/Parallel in the dmax Falloff texture?

Falloff is used when many experts make materials. Why? Many people do not understand this. I am here to show you some of my experiences.
First, use a falloff material for diffuse on any material, and give the black and white colors of falloff to red and green respectively. Select toward/away for falloff type and camera-x for falloff direction, then render the image. On the X axis of the camera, the positive side is red and the back side is green, regardless of the distance.
Page.hxsd.com.cn/..ed.jpg
Then select perpandicular/perallel, which is the default falloff type, which is the same as the X axis. As a result, the surface that is 90 degrees greater than the X axis is red, the parallel side is green, and the middle side is excessive, in metal materials, a mix is often added to reflection, and a bitmap, raytrace, and mask are used to map falloff. falloff uses the default option, or raytrace material to add a falloff to reflect, the reason for this is that in general, under normal circumstances, we can see that the launch is the weakest in 90 degrees from the perspective, while the launch is the strongest in parallel with the perspective, therefore, the rendered metal is the brightest on the boundary, and the reflection is the most obvious.
Page.hxsd.com.cn/..ed.jpg
The third type of falloff is fresnel, which is also the most commonly used. The book explains that it degrades according to the refractive index, it differs from perpandicular in that the second color appears in the outermost circle of the object. In the graph, this is the result of 1 refraction.
Page.hxsd.com.cn/..ed.jpg
After the refraction is adjusted to 20, the result is as follows: The Red area is basically green, but the green circle of the boundary is still there. It is also used for metal, the effect of perpandicular is similar. The higher the refraction, the closer the color is to the second.
Page.hxsd.com.cn/..ed.jpg
The remaining two methods are relatively simple. You can try them by yourself and provide a pair of images made of standard materials and falloff.
... The remaining full text>

How does vertical distinguish from perpendicular? What about horizontal and parallel?

Vertical
Vertical [Concise English-Chinese dictionary]
[Kernel v kernel: tik kernel l]
Adj. Vertical, vertical

Entry correction-Google Search

Perpendicular
Perpendicular [Concise English-Chinese dictionary]
[Limit p limit: p limit n Limit dikjul limit]
Adj. 1 vertical; 2 vertical at a right angle

Entry correction-Google Search

Horizontal
Horizontal [Concise English-Chinese dictionary]
[When h then ri then z then nt then l]
Horizontal, parallel to the horizon

Entry correction-Google Search

Parallel
Parallel [Concise English-Chinese dictionary]
[ˈ P æ r ə lel]
The two parallel ones (that is, at least two lines) are similar;
N. 1 parallel line [surface] 2 extremely similar people [things] 3 similar (points), similarity (points) 4 Comparison 5 weft, latitude
Vt. and... Parallel;... Equivalent

Entry correction-Google Search

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.