assignStatementEx1.scad 181 B

123456789
  1. for (i = [10:50])
  2. {
  3. assign (angle = i*360/20, distance = i*10, r = i*2)
  4. {
  5. rotate(angle, [1, 0, 0])
  6. translate([0, distance, 0])
  7. sphere(r = r);
  8. }
  9. }