- Home /
4d generic list array? possible? is best solution?
i just have 3 loops for x, y, z, and each loop produces 3 floating point numbers, 1,2,3...
Then i wish to find which floating point number corresponds to loop [x][y+1][z+1][2] for example.
what kind of array do i need to memorise and store these floating point numbers? ok maybe not 4d array sorry.
I don't actually get what is stored in this array? I also don't get your whole "edge" explanation.
here is the explanation, it's a marching cubes efficiency trick. http://stackoverflow.com/questions/16055829/marching-cubes-efficiency-you-can-reduce-3-4rs-of-the-edge-calculations Thanks bunny. i have completely edited the starting question to make it clearer.
Asking the question helped me to figure out the solution i think? if i use a 1d float array, i can access any point because
x = x
y = x*x
z=x*x*x something like that!