Mesh Indexed
App: apps/mesh_indexed/
Draws a cube with indexed rendering: 8 vertices (one per corner), and a vertex map (index list) that defines 12 triangles (2 per face). This is the standard way to share vertices and avoid duplication.
Run from root
Section titled “Run from root”% ./plume3d mesh_indexedor
Run from app directory
Section titled “Run from app directory”% ./../plume3d .What it does
Section titled “What it does”Graphics.newMesh([...], "triangles", _shader)— 8 vertices with position and color (e.g. front face 0–3, back face 4–7)._mesh.setVertexMap([0, 1, 2, 0, 2, 3, ...])— 36 indices for 12 triangles (front, back, right, left, top, bottom).