title: Creating the coordinates for a 3 dimensional cube in 1 unit blocks
body: <p>This a weird question, but it poses an interesting challenge; I have been looking at the old concept for the million dollar HTML matrix (1,000 x 1,000) and was more interested in the concept of a larger cube [like the body of Rubik's cube but without axes] and trying to figure out the way to do it in SQL so that they are ordered from the center.</p>
  
  <p>The center block would be 0,0,0 and then there would be the need to program the coordinates of the blocks surrounding it (-1,0,0; -1,-1,0; and so on and so forth) expanding essentially one level/layer upon layer such that the jump from the first core block to the second cube surrounding it is composed of 26 blocks and their coordinates, but I am thinking that I can generate 27 and then eliminate the ones already in the repository table. </p>
  
  <p>I think I am onto something right there, but the key is that I would love to have them arranged in another table in order such that you could essentially jump to the next block in the cube by touching it, almost like a three dimensional spiral.</p>
  
  <p>Any suggestions would be great and I think I am just going to mess with the concept of creating nested cubes for now, which is not the most elegant solution.</p>