Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.44 KB | None | 0 0
  1. module step(len, mod)
  2. {
  3.     for (i = [0:$children-1])
  4.         translate([ len*(i - ($children-1)/2), 0, 0 ]) child((i+mod) % $children);
  5. }
  6.  
  7. for (i = [1:4])
  8. {
  9.     translate([0, -250+i*100, 0]) step(100, i)
  10.     {
  11.         sphere(30);
  12.         cube(60, true);
  13.         cylinder(r = 30, h = 50, center = true);
  14.    
  15.         union() {
  16.             cube(45, true);
  17.             rotate([45, 0, 0]) cube(50, true);
  18.             rotate([0, 45, 0]) cube(50, true);
  19.             rotate([0, 0, 45]) cube(50, true);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement