What is the OpenGL® triangle?

OpenGL® triangle is the most basic shape that can be created in OpenGL® and have a surface. In geometry, the triangle is a shape that is made of three points, each of which connected with the line. In OpenGL® there is every point that forms the corner of the triangle, known as the peak, which is a collection of coordinates in the three -dimensional (3D) space. The triangle is the most basic shape with the surface, which means that the basic unit is also used to create all the larger shapes in the scene. The advantage of using the OpenGL® triangle over other polygons is support for more complex structures such as triangle strips, triangular fans and triangular network. Triangles are so widely used in 3D graphics that most graphics cards are optimized to quickly render triangles than most other polygons. The OpenGL® object uses this function by converting large and complex objects into a triangle sequence. Commonly used shaped, called quad or quadrilateral,It is a simple rectangle, but is made of two triangles that share a single edge. It is faster to portray two triangles than to calculate the necessary rectangle.

Although it may be a conceptually easy use of the Triangle OpenGL® sequence to create a larger object, the library provides functions that can make the task easier and faster and potentially use less space. The most common is called a triangular belt. It is a shape that starts with a single OpenGL® triangle and allows the user to define a different point that, when connected to the previous two points, is another connected triangle. The process of defining points can continue and the adding triangle every time it defines only one additional point, ultimately forming a long strip of triangles that alternate in the procedure.

strip can be used to create another complex shape of the OpenGL® triangle known as TROjúhní network. This can be visualized as a sequence of triangular strips sorted by the second on the second. The result is similar to the grid, except that each square actually consists of two triangles. In 3D space, a triangular grid can be used to create inconsistent surfaces such as human face or mountains.

Finally, the OpenGL® triangle can also be used to create a shape known as a triangle fan. The triangle fan begins with a single triangle. The fourth peak is defined and is connected to the previous triangle, which forms a new triangle. The difference from the strip of the triangle is that not only each of the triangles shares the party with the previous one, but also shares a single common end point from which everyone seems to be radiating. In the 3D space, the triangle fan can be used to create other shapes such as a cone or pyramid.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?