xend += Grid.EXTRA_CELLS_AFTER_GRID;
}
if (mypart.ymin() == 0) {
ystart -= Grid.EXTRA_CELLS_BEFORE_GRID;
}
if (mypart.ymax() == globalSettings.getGridCellsY() - 1) {
yend += Grid.EXTRA_CELLS_AFTER_GRID;
}
Cell[][] finalCells = new Cell[xend - xstart + 1][yend - ystart + 1];
for (int x = xstart; x <= xend ; ++x) {