Skip to main content

Module mesh

Module mesh 

Source
Expand description

CPU-side mesh data: procedural primitives and OBJ / glTF importers.

Structs§

Albedo
A decoded base-colour image that came with a model (glTF/GLB).
MeshData
Indexed CPU triangle mesh with optional imported material information. Indices refer into vertices; call validate before uploading externally generated data.
MeshPart
A run of triangles that share one imported material (one glTF primitive group).
ProcParams
Parameters of a procedural mesh; stored in the Shape component and encoded in the mesh key.
Vertex
Interleaved CPU/GPU vertex layout: position, normal and UV, all 32-bit floats.

Constants§

PRIMITIVES
Lowercase names accepted by MeshData::primitive and primitive mesh keys.
PRIMITIVE_PREFIX
Prefix for built-in unit primitive mesh keys.
PROC_PREFIX
Prefix for parameterized procedural geometry keys.