forLoopEx4.scad 210 B

12345678910
  1. for(i = [ [ 0, 0, 0],
  2. [10, 12, 10],
  3. [20, 24, 20],
  4. [30, 36, 30],
  5. [20, 48, 40],
  6. [10, 60, 50] ])
  7. {
  8. translate(i)
  9. cube([50, 15, 10], center = true);
  10. }