* as mapped areas later on to avoid unnecessary special case handling.
*/
static void createAreasForEmptyTerrain(List<MapNode> mapNodes,
List<MapArea> mapAreas, AxisAlignedBoundingBoxXZ dataBounds) {
VectorGridXZ posGrid = new VectorGridXZ(
dataBounds.pad(POINT_GRID_DIST), POINT_GRID_DIST);
/* create a grid of nodes (leaving points within the future patches blank) */
MapNode[][] nodeGrid = new MapNode[posGrid.sizeX()][posGrid.sizeZ()];
for (int x = 0; x < posGrid.sizeX(); x++) {
for (int z = 0; z < posGrid.sizeZ(); z++) {
if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
|| z % PATCH_SIZE_POINTS == 0 || z == posGrid.sizeZ() - 1) {
VectorXZ pos = posGrid.get(x, z);
MapNode mapNode = new MapNode(pos, EMPTY_SURFACE_NODE);
nodeGrid[x][z] = mapNode;
mapNodes.add(mapNode);