j0h

DIN_EndCap

j0h
Mar 17th, 2026
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. /*
  2. min_height=7.52mm
  3. width = 35 mm
  4. railwidth = 5.1mm
  5. inner = 24.4mm
  6. rail_hole = 5.4mm
  7. max_dist_zwichen_holes == 11.11mm
  8. bogus_messy_end_length == 20mm
  9. */
  10. $fn = 100;
  11. w=39;//35+4
  12. h=9;
  13. d = 20;
  14. inner = 24;
  15. deep = 5;
  16. module hole() {
  17. cylinder(h = deep + 0.3, r = 2.0);
  18. }
  19. module body(){
  20. union(){
  21. difference(){
  22.  
  23. difference(){
  24. cube([d,w,h], center = true);
  25.  
  26. cube([d,w-4,h-2], center = true);
  27. }
  28. translate([0,0,-2])cube([d,w-10,h-2], center = true);
  29. }
  30.  
  31. cube([d,inner,h-2], center = true);
  32. }
  33. }
  34.  
  35. module clip(){
  36. //clip
  37. difference(){
  38. translate([10,0,-2])cube([d,inner,3], center = true);
  39. translate([15,0,-5])hole();
  40. }}
  41.  
  42. //end_cap()
  43. translate([-10,0,0])cube([d-18,w,h], center = true);
  44.  
  45. clip();
  46. body();
Advertisement
Add Comment
Please, Sign In to add comment