G
Guardiano del Faro
Hello!!
i'm just a dummie in C/C++ and i need you help for solving my little
problem.
I have to create a 3D grid of points. Each point has the 3 coordinates
and a boolean value. (I made a structure in order to make this).
My task is to scan the grid through the x, y and z planes.
According to you, which is the best way to create this data structure?
I have tried to create a vector of vectors of vectors of point
structure, so to access to each point coordinate i just have to do
like:
Grid[j][k].x
So the i index will give me all the points which are on the x
planes....
but i have now idea about how to build it!!!
Does anybody has any clue?!
Thank you very much
Vito Baldassarre
i'm just a dummie in C/C++ and i need you help for solving my little
problem.
I have to create a 3D grid of points. Each point has the 3 coordinates
and a boolean value. (I made a structure in order to make this).
My task is to scan the grid through the x, y and z planes.
According to you, which is the best way to create this data structure?
I have tried to create a vector of vectors of vectors of point
structure, so to access to each point coordinate i just have to do
like:
Grid[j][k].x
So the i index will give me all the points which are on the x
planes....
but i have now idea about how to build it!!!
Does anybody has any clue?!
Thank you very much
Vito Baldassarre