i'm trying to create a hexagrid.
I succeeded for the case where the amount of x steps and the amount of y steps both is odd (wich is the easiest case).

There are 4 possible cases.
1: xSteps odd and ySteps odd
2: xSteps odd and ySteps even
3: xSteps even and ySteps even
4: xSteps even and ySteps odd
Case 3 and 4 are the hardest, tried them in java but i need more time to figure it out.
Case 2 shouldn't be that hard, i succeeded in java en have it in ICE now but something is wrong.
I would really like if someone can take a look at what is wrong.
I didn't post a image since it's a bit large for a image, however i added comments so it should be clear i guess.
https://dl.dropbox.com/u/17630770/temp/hexagrid_02.scn
