3D cube CORNER-CASE neighbours

Hello,
I am coding a 3D cube with 10x10x10 little cells.
Every cell has a number ID and it also stores the IDs of its neighbours.
So I go:

1
2
3
4
5
6
for( int i = 0...etc )
site[ i ].neighbour[ 0 ] = i + 1
site[ i ].neighbour[ 1 ] = i - 1
site[ i ].neighbour[ 2 ] = i - 10
site[ i ].neighbour[ 3 ] = i + 10
...etc


Then, I have to make sure that the guys on the edges have the same number of neighbours as the bulk cells, so they are basically attached to the opposite edge to ensure continuity.

TO DO THIS I HAVE TO HANDLE EACH CASE (WALL) SEPARATELY AND THIS TAKES TIME

Now, imagine (my case) to not have a nice cubic structure but a honeycomb structure. Now figuring out the neighbours(12) isn't trivial but can be done.

QUESTION:

Now how to ensure continuity in this case? (without doing it the same way I did before, as in this case I would have to code SO MANY cases (3 sheets of atom repeating in the structure, even/odd, front/back walls, up/down walls and left right.. about 500 lines of code that look very much like what I am about to post below )

There must be an easier way :(
Last edited on
//BULK ATOMS
for( int i = 0; i < NSITES; i++ )
{
//ODD ROW
if( indexToY( i ) % 2 != 0 )
{
site[ i ].setNeighbourID( 0 ,(i-1) );
site[ i ].setNeighbourID( 1 ,(i+10) );
site[ i ].setNeighbourID( 2 ,(i+11) );
site[ i ].setNeighbourID( 3 ,(i+1) );
site[ i ].setNeighbourID( 4 ,(i-9) );
site[ i ].setNeighbourID( 5 ,(i-10) );
site[ i ].setNeighbourID( 6 ,(i-110) );
site[ i ].setNeighbourID( 7 ,(i-111) );
site[ i ].setNeighbourID( 8 ,(i-100) );
site[ i ].setNeighbourID( 9 ,(i+100) );
site[ i ].setNeighbourID( 10,(i+111) );
site[ i ].setNeighbourID( 11,(i+101) );
}
//EVEN ROW
else
{
site[ i ].setNeighbourID( 0 ,(i-1) );
site[ i ].setNeighbourID( 1 ,(i+9) );
site[ i ].setNeighbourID( 2 ,(i+10) );
site[ i ].setNeighbourID( 3 ,(i+1) );
site[ i ].setNeighbourID( 4 ,(i-10) );
site[ i ].setNeighbourID( 5 ,(i-11) );
site[ i ].setNeighbourID( 6 ,(i-111) );
site[ i ].setNeighbourID( 7 ,(i-110) );
site[ i ].setNeighbourID( 8 ,(i-100) );
site[ i ].setNeighbourID( 9 ,(i+100) );
site[ i ].setNeighbourID( 10,(i+110) );
site[ i ].setNeighbourID( 11,(i+101) );
}
}

//LEFT - FIRST SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//LEFT - FIRST SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//LEFT - SECOND SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//LEFT - SECOND SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//LEFT - THIRD SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//LEFT - THIRD SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//RIGHT - FIRST SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//RIGHT - FIRST SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//RIGHT - SECOND SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//RIGHT - SECOND SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );





//RIGHT - THIRD SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//RIGHT - THIRD SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//UP - FIRST SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//UP - FIRST SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//UP - SECOND SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//UP - SECOND SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//UP - THIRD SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//UP - THIRD SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//DOWN - FIRST SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//DOWN - FIRST SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//DOWN - SECOND SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//DOWN - SECOND SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//DOWN - THIRD SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//DOWN - THIRD SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//FRONT - FIRST SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );


//FRONT - SECOND SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//FRONT - SECOND SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//FRONT - THIRD SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//FRONT - THIRD SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//BACK - FIRST SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//BACK - FIRST SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//BACK - SECOND SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//BACK - SECOND SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//BACK - THIRD SHEET - EVEN
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
//BACK - THIRD SHEET - ODD
site[ i ].setNeighbourID( 0 ,(i) );
site[ i ].setNeighbourID( 1 ,(i) );
site[ i ].setNeighbourID( 2 ,(i) );
site[ i ].setNeighbourID( 3 ,(i) );
site[ i ].setNeighbourID( 4 ,(i) );
site[ i ].setNeighbourID( 5 ,(i) );
site[ i ].setNeighbourID( 6 ,(i) );
site[ i ].setNeighbourID( 7 ,(i) );
site[ i ].setNeighbourID( 8 ,(i) );
site[ i ].setNeighbourID( 9 ,(i) );
site[ i ].setNeighbourID( 10,(i) );
site[ i ].setNeighbourID( 11,(i) );
Topic archived. No new replies allowed.