PopufareHousingBottom.scad 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // License: CC0
  2. //
  3. // To the extent possible under law, Clementine Computing LLC has waived
  4. // all copyright and related or neighboring rights to this file.
  5. //
  6. // This work is published from: United States.
  7. //
  8. include <PopufareHousingCommon.scad>
  9. module PopufareHousingBottomPlate() {
  10. w = POPUFARE_HOUSING_WIDTH;
  11. h = POPUFARE_HOUSING_DEPTH;
  12. fixture_dx = POPUFARE_FIXTURE_DX;
  13. fixture_dy = POPUFARE_FIXTURE_DY;
  14. fixture_bolt = 5.0/2.0;
  15. bx = POPUFARE_BRACKET_CX;
  16. br = POPUFARE_BRACKET_D/2.0;
  17. difference() {
  18. square([w,h], center=true);
  19. // generic cable access
  20. //
  21. circle(POPUFARE_GLAND_DIAMETER/2.0);
  22. // fixture bolts
  23. //
  24. translate([-fixture_dx/2.0, -fixture_dy/2.0]) circle(fixture_bolt);
  25. translate([ fixture_dx/2.0, -fixture_dy/2.0]) circle(fixture_bolt);
  26. translate([ fixture_dx/2.0, fixture_dy/2.0]) circle(fixture_bolt);
  27. translate([-fixture_dx/2.0, fixture_dy/2.0]) circle(fixture_bolt);
  28. // side bracket attachments
  29. //
  30. translate([ (w/2 - bx), (h/2-POPUFARE_BRACKET_DE)]) circle(br);
  31. translate([ (w/2 - bx),-(h/2-POPUFARE_BRACKET_DE)]) circle(br);
  32. translate([-(w/2 - bx), (h/2-POPUFARE_BRACKET_DE)]) circle(br);
  33. translate([-(w/2 - bx),-(h/2-POPUFARE_BRACKET_DE)]) circle(br);
  34. // front bracket attachments
  35. //
  36. translate([ (w/2 - POPUFARE_BRACKET_DE), -(h/2 - bx)]) circle(br);
  37. translate([-(w/2 - POPUFARE_BRACKET_DE), -(h/2 - bx)]) circle(br);
  38. // hinge assembly attachment
  39. //
  40. }
  41. }
  42. //PopufareHousingBottomPlate();