Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.73 KB | None | 0 0
  1.  
  2. $fa=10;
  3. $fs=.01;
  4.  
  5. thickness=.9;
  6. distance=2*2.54;
  7. bottom_width=2.54;
  8. pip_height=3.3;
  9. pip_base=2.2;
  10. pip_top=3.5+0.5;
  11. plupps=32;
  12. separation=1;
  13. tabW=6;
  14. groups=4;
  15. pergroup=8;
  16. module pip(){
  17.      hull(){
  18.           translate([0, (pip_top-pip_base)/2, 0])
  19.                cube([thickness, pip_base, thickness/10]);
  20.           translate([0, 0, pip_height])
  21.                cube([thickness, pip_top, thickness/10]);
  22.      }
  23. }
  24.  
  25. module pip_pair(){
  26.      translate([0, (pip_top-pip_base)/2, 0])
  27.           cube([bottom_width+2*thickness, pip_base, thickness]);
  28.      pip();
  29.      translate([bottom_width+thickness, 0, 0])pip();
  30. }
  31.  
  32. module roadrunner_remsa(n=20){
  33.      translate([thickness*0.5, pip_top/2, 0])
  34.           cube([bottom_width+thickness, (n-1)*distance+pip_top*0, thickness]);
  35.      for(y=[0:distance:ceil((n-1)*distance)])
  36.           translate([0, y, 0]) pip_pair();
  37. }
  38.  
  39.  
  40. translate([-thickness-bottom_width/2+tabW/2,6,0])
  41. for(x = [0:(groups*pergroup)-1]){
  42.      translate([floor(x/pergroup)*1.5,0,0]){
  43.           translate([x*(bottom_width+thickness*2+separation),0,0])
  44.                roadrunner_remsa(plupps);
  45.  
  46.           translate([x*(bottom_width+thickness*2+separation),-6,0]){
  47.                translate([thickness+bottom_width/2-tabW/2,0,0])
  48.                     cube([tabW,5,1]);
  49.                translate([(bottom_width+thickness*2)/2-1,3,0])
  50.                     cube([2,4,thickness]);
  51.           }
  52.  
  53.           translate([x*(bottom_width+thickness*2+separation),(plupps-1)*distance+pip_top+1,0]){
  54.                translate([thickness+bottom_width/2-tabW/2,0,0])
  55.                     cube([tabW,5,1]);
  56.                translate([(bottom_width+thickness*2)/2-1,-3,0])
  57.                     cube([2,4,thickness]);
  58.           }
  59.      }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement