private Voxel addVoxel(int x, int y, int z) {
if (x>=0 && y>=0 && z>=0 && x<voxelArraySize && y<voxelArraySize && z<voxelArraySize) {
Voxel voxel = voxels[x][y][z];
Vector3 vertexPosition = new Vector3(crossingPoint).multiplyLocal(levelScale).addLocal(basePosition);
Vector4 material = new Vector4(x/32.0f,y/32.0f,z/32.0f,1.0);
if (voxel == null) {
voxels[x][y][z] = new Voxel(vertexPosition,material,voxelCounter);
voxelCounter++;
} else {
voxels[x][y][z].add(vertexPosition,material);