Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. include <quickthread.scad>;
  2. //preferences
  3. length = 90;
  4. backLength = 15;
  5. backDiameter = 50;
  6. frontDiameter = 30;
  7.  
  8. //thread parameters
  9. holeDepht = 20;
  10. holdeDiameter = 16;
  11. threadLength = 46;
  12. threadDiameter = 12;
  13. threadDiameterInternal = 10.2;
  14. theadPitch = 1.75;
  15.  
  16. //smothness
  17. $fn = 200;
  18. cornerRadius = 4;
  19.  
  20. //derived parameters
  21. threadDepht = holeDepht + threadLength;
  22. beforeStop = length - backLength;
  23. backRadius = backDiameter/2;
  24. frontRadius = frontDiameter/2;
  25.  
  26. module base() {
  27. translate([0,0,length]) rotate([180,0,0]) rotate_extrude() translate([0,backLength,0]) hull() {
  28. translate([0, -(backLength),0]) square(cornerRadius);
  29. translate([0,beforeStop-cornerRadius]) square(cornerRadius);
  30. translate([backRadius-cornerRadius,cornerRadius,0]) circle(cornerRadius);
  31. translate([frontRadius-cornerRadius, beforeStop-cornerRadius,0]) circle(cornerRadius);
  32. translate([backRadius-cornerRadius, -(backLength-cornerRadius),0]) circle(cornerRadius);
  33. }
  34.  
  35. }
  36.  
  37. module withHoles() {
  38. difference() {
  39. base();
  40. translate([0,0,-1]) cylinder(threadDepht+1, r = threadDiameterInternal/2);
  41. translate([0,0,-1]) cylinder(holeDepht+1, r = holdeDiameter/2);
  42. }
  43. }
  44.  
  45. render() {
  46. translate([0,0,-(length/2)]) difference() {
  47. withHoles();
  48. isoThread(d=threadDiameter,h=threadDepht,pitch=theadPitch,internal=true);
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement