Advertisement
mcgiwer

[Mcgiwer] Rotor

Mar 16th, 2023 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | Source Code | 0 0
  1. /* VARIABLES INITIALIZATION */
  2.  
  3. $fn=20;
  4.  
  5. // MAIN CYLINDER
  6.  
  7. h=2; // main cylinder height
  8. w=5; // main cylinder width
  9.  
  10. // CENTER AXLE
  11.  
  12. ad=2.01 * h; // deepth of the center axle
  13. aw = 0.5; // width of the center axle
  14.  
  15. // SIDE HOLLOW'S
  16.  
  17. angle=21.2; // angle in bewween side holes and center of the cylinder
  18. tangent_angle = 30;
  19. hd = 0.7; // deepth of the hollow
  20. hs = 0.5; // size of the hollow
  21.  
  22.  
  23. /* CODE */
  24.  
  25. difference() {
  26. cylinder(h,r=w); // Draw the main cylinder
  27. cylinder(ad, r=aw, center=true); // Draw the axle in the middle
  28.  
  29. #for (curr_angle = [0 : angle : 360])
  30. {
  31. rotate([0,0,curr_angle])
  32. translate([w, 0 , h / 2])
  33. rotate([0,90,tangent_angle])
  34. cylinder(d=hs, h=hd, center = true);
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement