for(x=[0:3], y=[0:0.5:1], z=[0,2,3]) { translate(10*[x,y,z]) sphere(r=3); }