Advertisement
Guest User

https://www.reddit.com/r/3Drequests/comments/1lugvrh/help_me_cut_and_key_this_stl/

a guest
Jul 8th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | Source Code | 0 0
  1. // FishLid.scad
  2.  
  3. // A binary operator to remove something,
  4. // is with the "difference()" function.
  5. difference()
  6. {
  7. // Move it, to put it centered on the x-axis
  8. // The command for moving is translate().
  9. // The numbers are found by visually putting
  10. // it in the right place.
  11. translate([-33.655,320.675,0])
  12. import("FishLidFull.stl",convexity=2);
  13.  
  14. // The bottom of the rectangles is
  15. // 3.8 mm above the xy-plane.
  16. // That is the same as the edge
  17. // of the cutout in the lower-middle.
  18. translate([0,0,3.8])
  19. {
  20. // The height of the removed rectangles
  21. // is a "don't care". It should be high enough.
  22. // A height of 5 is high enough.
  23. linear_extrude(5)
  24. {
  25. // Make two of them.
  26. // One normal, and one mirrored.
  27. for(xmirror=[0,1])
  28. {
  29. mirror([xmirror,0,0])
  30. {
  31. // small vertical on the side
  32. translate([361,184]) // x, y
  33. square([13,44],center=true);
  34.  
  35. // Big one in the middle upper.
  36. translate([0,246])
  37. square([100,25],center=true);
  38.  
  39. // Small one in the middle lower.
  40. translate([0,137])
  41. square([60,12],center=true);
  42.  
  43. // Top one of the four.
  44. translate([223,290])
  45. square([70,26],center=true);
  46.  
  47. // Second one of the four.
  48. translate([223,242])
  49. square([70,26],center=true);
  50.  
  51. // Third one of the four.
  52. translate([223,115])
  53. square([70,26],center=true);
  54.  
  55. // Fourth and bottom one of the four.
  56. translate([223,38])
  57. square([70,26],center=true);
  58. }
  59. }
  60. }
  61. }
  62. }
Tags: OpenSCAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement