Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $fn = 64;
  2.  
  3. distance = 27;
  4. height = 7;
  5. points = 3;
  6. angle = 360/points;
  7. nut_width = 14.12;
  8.  
  9. module fhex_nut(wid, h){
  10.     translate([0,0, h/2])
  11.         hull(){
  12.             cube([wid/1.7, wid, h], center=true);
  13.             rotate([0,0,120]) cube([wid/1.7, wid, h], center=true);
  14.             rotate([0,0,240]) cube([wid/1.7, wid, h], center=true);
  15.         }
  16. }    
  17.  
  18. module middle(distance, angle, nut, h){
  19.     rotate([0,0,angle])
  20.     translate([0, distance, 0]){
  21.         difference(){
  22.             cylinder(r=22.5/2, h=height);
  23.             fhex_nut(nut, h);
  24.         }
  25.     }
  26. }
  27.  
  28. union(){
  29.     import("/home/manus/Downloads/Triplex_Thingy.stl");
  30.     for (a =[0:points-1])
  31.         middle(distance, angle*a, nut_width, height);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement