Mesh Points
App: apps/mesh_points/
Creates a points mesh: a grid of vertices with draw mode "points", and animates their r, g, b attributes each frame with setVertexAttribute. (No flush() in this demo — if your backend requires it for dynamic attributes, add _mesh.flush() after updates.)
Run from root
Section titled “Run from root”% ./plume3d mesh_pointsor
Run from app directory
Section titled “Run from app directory”% ./../plume3d .What it does
Section titled “What it does”- Builds a 9×9 grid of points (spacing 0.1, size 8 in the loop).
- Each vertex:
[x, y, 0, r, g, b, 1.0]with r/g from grid position, b fixed. - In
update, animates each vertex’sr,g,bby index and time with_mesh.setVertexAttribute(i, "r", r)etc.