plunger.scad 816 B

123456789101112131415161718192021222324
  1. // Button plunger for EE04 case +Y wall
  2. // At rest: flange flush with interior face, head proud of exterior face
  3. include <params.scad>
  4. module plunger() {
  5. color("orange") union() {
  6. translate([0, -FLANGE_T, 0])
  7. rotate([-90, 0, 0])
  8. cylinder(d = PLUNGER_D, h = FLANGE_T + WALL + PLUNGER_HEAD_H, $fn = 32);
  9. translate([0, -FLANGE_T, 0])
  10. rotate([-90, 0, 0])
  11. cylinder(d = FLANGE_D, h = FLANGE_T, $fn = 32);
  12. translate([0, WALL, 0])
  13. rotate([-90, 0, 0])
  14. cylinder(d = PLUNGER_D, h = PLUNGER_HEAD_H, $fn = 32);
  15. }
  16. }
  17. // ============================================================
  18. // RENDER — long axis vertical, flange face on build plate
  19. // ============================================================
  20. translate([0, 0, FLANGE_T])
  21. rotate([90, 0, 0])
  22. plunger();