Glossary · File formats

Tessellation

In short

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 [1][2].

Why it is needed

CAD systems describe parts with mathematical surfaces such as NURBS that represent any shape exactly [3]. Real-time graphics, by contrast, works with polygon meshes. The Library of Congress explicitly calls the breaking of a surface into small triangles or other polygons "tessellation" [2].

How it works

The Open CASCADE geometry kernel describes a typical two-step approach: first the edges of each face are discretised into points, then the face itself is triangulated [1]. Because neighbouring faces share the same edge points, no gaps appear.

The tolerance decides

Two values control the result [1]:

  • Linear deflection: the maximum distance between the mesh and the true surface.
  • Angular deflection: the maximum angle between consecutive segments.

Too coarse and round parts turn angular. Too fine and a part has millions of triangles. Good values depend on part size: a curved rail needs a different resolution from a hall frame.

A practical approach

Tessellate coarsely first, then zoom in on the most critical radii in a viewer and refine the tolerance only where facets become visible. Many tools allow different values per part. The model stays light without looking angular where people look.

Typical problems afterwards

  • Many triangles on large flat areas, which decimation can remove again.
  • Normals that are flipped or smoothed across hard edges.
  • Hidden internal parts that were tessellated too and only add weight.

The biggest gain usually comes before tessellation: do not convert parts nobody will see. The guide CAD to web 3D covers the full route from STEP to GLB.

Related terms

  • CAD data

    CAD data are the engineering models of a product created in computer-aided design software. They describe parts with exact surfaces and dimensions for development and production, not for display in a browser.

  • STEP file (ISO 10303)

    STEP (.stp, .step) is a neutral exchange format for product data defined in the ISO 10303 series. Most mainstream CAD systems read and write it (usually as AP203, AP214 or AP242), which makes it the usual way to pass 3D parts between programs.

  • Polygon mesh

    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.

  • 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.

  • CAD-to-web pipeline

    A CAD-to-web pipeline is the repeatable route from engineering data (such as STEP) to a light web model: simplify, tessellate, assign materials, export as glTF/GLB, check. Details: [CAD to web 3D configurator](/en/guides/cad-to-web-3d-configurator/)

More in our guides

Sources

  1. Open CASCADE Technology: Mesh (BRepMesh) User Guide
  2. Library of Congress: STL (STereoLithography) File Format Family
  3. Library of Congress: 3D Model File Format Family (Rhino 3DM)

← All terms in the glossary