Glossary · 3D basics

Polygon mesh

In short

A polygon mesh describes the surface of a 3D object as a network of vertices, edges and faces. In the end, graphics cards draw surfaces as triangles, and glTF stores surfaces as triangles too [2].

What a mesh is made of

Every mesh is built from three basic elements [1]:

  • Vertices: points in space, stored as coordinates.
  • Edges: straight connections between two vertices.
  • Faces: triangles, quads or n-gons enclosed by edges. Only faces are visible in the rendered image.

Triangles are always flat and therefore cheap to compute [1]. Modelling tools often work in quads, but for real-time display every face is split into triangles. glTF stores geometry as primitives with attributes such as position, normal and texture coordinate (POSITION, NORMAL, TEXCOORD_0) [2].

Topology: how the mesh is connected

Topology describes how vertices and faces connect. A clean mesh has no duplicate faces, no gaps where the surface should be closed, and normals that point outwards. Faults show up in the browser as flickering, holes or oddly lit faces.

Why the polygon budget matters

Every triangle costs memory and processing time. For a product view in the browser the rule is simple: as many triangles as edges and radii need to look round, and as few as possible on large flat areas. The tools for this are tessellation with a sensible tolerance, decimation and level of detail.

For scale, from our library: the model of the planetary gearhead (example configurator, fictional product) has around 78,000 triangles spread over more than 50 meshes.

Mesh or CAD surface?

CAD software usually describes parts with exact mathematical surfaces. A mesh is always an approximation. The guide CAD to web 3D explains how one becomes the other.

Related terms

  • Tessellation

    Tessellation is the splitting of exact CAD surfaces into a mesh of triangles. It is the first step in showing an engineering model in the browser, because real-time graphics draws surfaces as triangles.

  • Normals

    Normals are direction vectors perpendicular to a surface. They decide how light falls on a model and whether it looks softly rounded or crisply edged. If a glTF file lacks them, the viewer computes flat normals; flipped normals are a common fault in CAD exports.

  • Level of detail (LOD)

    Level of detail (LOD) means keeping several versions of an object at different detail levels and drawing the one that suits the camera distance: the fine one close up, the coarse one far away.

  • Decimation (polygon reduction)

    Decimation (polygon reduction) lowers the vertex and face count of a mesh with as little change to its shape as possible, for example with Blender's Decimate modifier or gltfpack. Useful on large flat areas; edges and radii should keep their triangles.

  • Draw calls

    A draw call is a single drawing command sent to the graphics card, such as "draw this mesh with this material". Each call carries overhead, so a few large calls are generally faster than many small ones.

Examples to try

Example configurator · fictional product

Planetary gearhead

A planetary gearhead for sales and training: running drive with adjustable input speed, cut-away and exploded views, item numbers and technical data as sample values.

Industrial cells & machines · Opening and mechanism · Exploded or cut-away view · Notes on the model

More in our guides

Sources

  1. Blender Manual: Mesh Structure
  2. Khronos Group: glTF 2.0 Specification

← All terms in the glossary