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.