I am wondering if you can give me some ideas about below:
I've a program which uses 3 dimention cartesian co-ordinate system, I've written a program which generate input files for that program based on the 3D co-ordinates. However one thing that I dont get hold of is how to cover the 3D grid. For instance I've x=10, y=5, and z=3.14, I want to cover the grid in both directions i.e. left and right & up and down. One way is to use nested loops which will increment the existing x, y and z co-ordinate values. Can you please give me some ideas.