TriangleMesh is an engine-side geometry dataset produced by mesh generation
algorithms. It stores the surface as a collection of independent triangles,
where each triangle contains three 3D coordinates.
The dataset is intentionally kept separate from rendering representations.
Browser-side adapters are responsible for converting the mesh into the
structures required by rendering engines such as Three.js (for example,
flattened position buffers and indexed geometry).
Represents a generated triangular surface mesh.
TriangleMesh is an engine-side geometry dataset produced by mesh generation algorithms. It stores the surface as a collection of independent triangles, where each triangle contains three 3D coordinates.
The dataset is intentionally kept separate from rendering representations. Browser-side adapters are responsible for converting the mesh into the structures required by rendering engines such as Three.js (for example, flattened position buffers and indexed geometry).
Example