double t1y = bsp.print_center[1] - (widthY - bb.getHeight())/2;
double disty = bb.getHeight() + bsp.gap;
ArrayList<PrintObject> tiles = new ArrayList<>(x * y);
int counter = 0;
PrintObject obj;
for (int ix = 0; ix < x; ix++) {
for (int iy = 0; iy < y; iy++) {
if(pairs){
if(counter % 2 == 0)
obj = optimized;
else
obj = uniform;
} else {
if(printOptimized)
obj = optimized;
else
obj = uniform;
}
Point2d pos = new Point2d(t1x + ix*distx, t1y + iy*disty);
tiles.add(new PrintObject(obj, pos));
counter++;
}
}