Concave triangles and convex triangles

Source: Internet
Author: User

Convex triangles:

A convex polygon of any n vertex can be decomposed into n-2 triangles. The geometrical knowledge indicates that the inner angle of the triangle is 180 degrees. All triangular inner angles and for (n-2) *180 degrees.

You can see that this and always equal the inner angle of the polygon and.

For a convex polygon, the inner angle is not greater than outer corner. (Outer corner not supplementary angle, a pair of inner angles outer corner and equal to 360 degrees)


Another way to detect convexity is to detect the presence of a concave point on the polygon. If one is not found, it is a convex polygon.


How to detect the turn of a point.

Cross-multiplication using edge vectors.


The normal vector of the vertex is computed using the adjacent 2 edge vectors, and then the normal vector of the polygon and the normals of the vertices are used to detect the opposite direction.

If it is negative, the vertex is a concave point.


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.