z_min = 0; z_max = 100; x_max = 50; y_max = 105; slice = 1; n = floor(sqrt((z_max - z_min)/slice)+1); for(z = [-z_max:slice:z_min]) { i = (z + z_max) / slice; x = x_max * (i % n); y = y_max * floor(i / n); translate([x,y,0]) { projection(cut=true) translate([0,0,z]) import("/Users/petarivcec/Desktop/art/king of sun/2 and 3 repaired.stl"); }; };