forLoop.scad 196 B

1234567891011121314
  1. sideLen=20;
  2. gap=2;
  3. gridSize=10;
  4. for( a = [0 : gridSize-1])
  5. {
  6. translate([a*sideLen+a*gap, 0, 0])
  7. for( a = [0 : gridSize-1])
  8. {
  9. translate([0, a*sideLen+a*gap, 0])
  10. cube(sideLen);
  11. }
  12. }