How can I make jit.gl.mesh ignore 'empty' (zeroed) cells when manually sending vertex matrices to it, or otherwise remove them? At the moment my nice clean mesh is spoiled by a bunch of triangles reaching out to 0. 0. 0.
I'm sure theres probably an easy solution, but I've spent so long on it I can no longer see woods or trees.
My instinct was to use jit.iter to route all the non-zero cells into a new single-row matrix, but that requires you to know the number of cells needed in advance (unless you can add cells dynamically? - its been a while since I was in matrix-land).
I've taken that idea to the point I'm jit.glue ing extra columns onto the matrix, but it all seems hopelessly inefficient to be run multiple times per frame (plus that solution currently reports 'invalid glue output').
Is it possible to send jit.gl.mesh individual messages for the vertices? That would solve my pre-made matrix issues.