j0h

HPC_hole_drilling_jig

j0h
Apr 14th, 2026
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.87 KB | None | 0 0
  1. // HPC Hole drill templates
  2. //openscad
  3. //Hole size = 1/8th inch = 3.175mm
  4. // idea: ridge block w hole at locatation. engrave module name
  5. $fn =100;
  6. hole = 1.6;
  7.  
  8. //insetX=14mm insetY=14mm insetZ=5mm
  9. iX=13;
  10. iY=13;
  11. iZ=5;
  12.  
  13. //outsetX,Y,Z
  14. oX=iX+2;
  15. oY=iY+2;
  16. oZ=5;
  17.  
  18.  
  19. //module body(){
  20. //difference(){
  21. //cube([oX,oY,oZ]);
  22. //cube([iX,iY,iZ]);
  23. //}
  24. //}
  25. module body() {
  26.     difference() {
  27.         cube([oX,oY,oZ]);
  28.         translate([0,0,3]) cube([iX,iY,iZ]);
  29.     }
  30. }
  31. //all the bodies are the same, the cone placement differs
  32. module cone(){
  33. //translate([0,0,5]) difference(){
  34. //cylinder(iZ-2,hole+2,hole+2);
  35. cylinder(iZ-2,hole,hole);
  36. }
  37.  
  38. //}
  39.  
  40. module TL(){
  41. // top left
  42. difference(){
  43. body();
  44. translate([6.8,7.43,0])cone();
  45.  
  46. }}
  47. module TR(){
  48. // top right
  49. body();
  50. }
  51. module BL(){
  52. //bottom left
  53. body();
  54. }
  55. module BR(){
  56. // bottom right
  57. body();
  58. }
  59.  
  60.  
  61. TL();
Advertisement
Add Comment
Please, Sign In to add comment