scad.scad 333 B

123456789101112131415161718192021
  1. // ace can highlight scad!
  2. module Element(xpos, ypos, zpos){
  3. translate([xpos,ypos,zpos]){
  4. union(){
  5. cube([10,10,4],true);
  6. cylinder(10,15,5);
  7. translate([0,0,10])sphere(5);
  8. }
  9. }
  10. }
  11. union(){
  12. for(i=[0:30]){
  13. # Element(0,0,0);
  14. Element(15*i,0,0);
  15. }
  16. }
  17. for (i = [3, 5, 7, 11]){
  18. rotate([i*10,0,0])scale([1,1,i])cube(10);
  19. }