encyclopegia.org

Triangle mesh

In computer graphics, a triangle mesh is a type of polygon mesh.[src] It comprises a set of triangles (typically in three dimensions) that are connected by their common edges or vertices.[src] Many graphics software packages and hardware devices can operate more efficiently on triangles that are grouped into meshes than on a similar number of triangles that are presented individually.[src] This is typically because computer graphics do operations on the vertices at the corners of triangles.[src] With individual triangles, the system has to operate on three vertices for every triangle.[src] In a large mesh, there could be eight or more triangles meeting at a single vertex - by processing those vertices just once, it is possible to do a fraction of the work and achieve an identical effect.[src] In many computer graphics applications it is necessary to manage a mesh of triangles.[src] The mesh components are vertices, edges, and triangles.[src] An application might require knowledge of the various connections between the mesh components.[src] These connections can be managed independently of the actual vertex positions.[src] This document describes a simple data structure that is convenient for managing the connections.[src] This is not the only possible data structure.[src] Many other types exist and have support for various queries about meshes.[src]

]] In computer graphics, a triangle mesh is a type of polygon mesh.[src] It comprises a set of triangles (typically in three dimensions) that are connected by their common edges or vertices.[src] Many graphics software packages and hardware devices can operate more efficiently on triangles that are grouped into meshes than on a similar number of triangles that are presented individually.[src] This is typically because computer graphics do operations on the vertices at the corners of triangles.[src] With individual triangles, the system has to operate on three vertices for every triangle.[src] In a large mesh, there could be eight or more triangles meeting at a single vertex - by processing those vertices just once, it is possible to do a fraction of the work and achieve an identical effect.[src] In many computer graphics applications it is necessary to manage a mesh of triangles.[src] The mesh components are vertices, edges, and triangles.[src] An application might require knowledge of the various connections between the mesh components.[src] These connections can be managed independently of the actual vertex positions.[src] This document describes a simple data structure that is convenient for managing the connections.[src] This is not the only possible data structure.[src] Many other types exist and have support for various queries about meshes.[src] ==Representation== Various methods of storing and working with a mesh in computer memory are possible.[src] With the OpenGL and DirectX APIs there are two primary ways of passing a triangle mesh to the graphics hardware, triangle strips and index arrays.[src] ===Triangle strip=== One way of sharing vertex data between triangles is the triangle strip.[src] With strips of triangles each triangle shares one complete edge with one neighbour and another with the next.[src] Another way is the triangle fan which is a set of connected triangles sharing one central vertex.[src] With these methods vertices are dealt with efficiently resulting in the need to only process N+2 vertices in order to draw N triangles.[src] Triangle strips are efficient, but translating a triangle mesh to a minimal set of triangle strips is an NP-complete problem.[src] ===Data structure=== The data structure representing the mesh provides support for two basic operations: inserting triangles and removing triangles.[src] It also supports an edge collapse operation that is useful in triangle decimation schemes.[src] The structure provides no support for the vertex positions, but it does assume that each vertex is assigned a unique integer identifier, typically the index of that vertex in an array of contiguous vertex positions.[src] A mesh vertex is defined by a single integer and is denoted by hvi.[src] A mesh edge is defined by a pair of integers hv0,v1i, each integer corresponding to an end point of the edge.[src] To support edge maps, the edges are stored so that v0 = min(v0,v1).[src] A triangle component is defined by a triple of integers hv0,v1,v2i, each integer corresponding to a vertex of the triangle.[src] To support triangle maps, the triangles are stored so that v0 = min(v0,v1,v2).[src] Observe that hv0,v1,v2i and hv0,v2,v1i are treated as different triangles.[src] An application requiring double–sided triangles must insert both triples into the data structure.[src] For the sake of avoiding constant reminders about order of indices, in the remainder of the document the pair/triple information does not imply the vertices are ordering in any way (although the implementation does handle the ordering).[src] Connectivity between the components is completely determined by the set of triples representing the triangles.[src] A triangle t = hv0,v1,v2i has vertices v0, v1, and v2.[src] It has edges e0 = hv0,v1i, e1 = hv1,v2i, and e2 = hv2,v0i.[src] The inverse connections are also known.[src] Vertex v0 is adjacent to edges e0 and e2 and to triangle t.[src] Vertex v1 is adjacent to edges e0 and e1 and to triangle t.[src] Vertex v2 is adjacent to edges e1 and e2 and to triangle t.[src] All three edges e0, e1, and e2 are adjacent to t.[src] How much of this information a data structure stores is dependent on the needs of an application.[src] Moreover, the application might want to have additional information stored at the components.[src] The information stored at a vertex, edge, or triangle is referred to as the vertex attribute, edge attribute, or triangle attribute.[src] The abstract representations of these for the simple data structure described here are Vertex = ; // v Edge = ; // v0, v1 Triangle ; // v0, v1, v2 VData = ; EData = ; TData = ; VAttribute = ,set >; // data, eset, tset EAttribute = >; // data, tset TAttribute = ; // data VPair = pair ; EPair = pair ; TPair = pair ; VMap = map ; EMap = map ; TMap = map ; Mesh = ; // vmap, emap, tmap The maps support the standard insertion and removal functions for a hash table.[src] Insertion occurs only if the item does not already exist.[src] Removal occurs only if the item does exist.[src] ===Edge collapse=== This operation involves identifying an edge hvk, vti where vk is called the keep vertex and vt is called the throw vertex.[src] The triangles that share this edge are removed from the mesh.[src] The vertex vt is also removed from the mesh.[src] Any triangles that shared vt have that vertex replaced by vk.[src] Figure 1 shows a triangle mesh and a sequence of three edge collapses applied to the mesh.[src] ===Index array=== With index arrays, a mesh is represented by two separate arrays, one array holding the vertices, and another holding sets of three indices into that array which define a triangle.[src] The graphics system processes the vertices first and renders the triangles afterwards, using the index sets working on the transformed data.[src] In OpenGL, this is supported by the glDrawElements() primitive when using Vertex Buffer Object (VBO).[src] With this method, any arbitrary set of triangles sharing any arbitrary number of vertices can be stored, manipulated, and passed to the graphics API, without any intermediary processing.[src] ==See also== Hypergraph Möller-Trumbore algorithm for ray-triangle intersection Nonobtuse mesh Nonuniform rational B-spline Point cloud Polygon mesh Triangulation (topology) Triangulation (geometry) Delaunay triangulation Triangulated irregular network ==References==[src]

68 sentences · 68 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Triangle mesh." encyclopegia.org, 2026, https://encyclopegia.org/wiki/triangle-mesh. Accessed 29 November 2026.

Chicago

"Triangle mesh." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/triangle-mesh.

APA

encyclopegia.org. (2026). Triangle mesh. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/triangle-mesh

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Triangle building

stub · references available

Weimar Triangle

stub · references available

Sunni Triangle

stub · references available

triangle center

stub · references available

Hala'ib Triangle

stub · references available

Triangle of U

stub · references available

Eastern Triangle Butterflyfish

stub · references available

kobon triangle problem

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1365099452 · 0.5 · snapshot enwiki-001365099452

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.