I have voxel maps of 1024 x 1024 x 1024, over a billion voxels, and i am traversing them from XYZ axes to find the outline of a scan within them.
Every time I hit a voxel boundary, I want to create a quad reference for the face encountered, which consists of 4 vertices and and a triangle/quad reference index.
Because the result is 50-60 million quads, I don't think that I can write arrays to memory and merge vertices using loops, it would be too much memory and I can use Meshlab to delete duplicate vertices.
So it's simple to just write 4 vertices and a reference to them every time i find I traverse a boundary.
A/ Can I use another methodology?
B/ What file format allows me to filestream lines like:
FORMAT= .EASY
vtxA: (2.0 , 5.0, 2,0) nml(-1,0,0)
vtxB: (2.0 , 6.0, 2,0) nml(-1,0,0)
vtxC: (2.0 , 5.0, 3,0) nml(-1,0,0)
vtxD: (2.0 , 6.0, 3,0) nml(-1,0,0)
QUAD: ABCD
vtxC: (1002.0 , 5.0, 2,0) nml(1,0,0)
vtxD: (1002.0 , 6.0, 2,0) nml(1,0,0)
vtxE: (1002.0 , 5.0, 3,0) nml(1,0,0)
vtxF: (1002.0 , 6.0, 3,0) nml(1,0,0)
QUAD: CDEF