PopufareHousingBack.scad 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 PopufareHousingBackPlate() {
  10. w = POPUFARE_HOUSING_WIDTH;
  11. h = POPUFARE_HOUSING_HEIGHT - POPUFARE_HOUSING_BACK_LIP_HEIGHT;
  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. gland_cx = 0;
  18. gland_cy = -(h/2 - 1.5*POPUFARE_GLAND_DIAMETER);
  19. gdx = 1*POPUFARE_GLAND_DIAMETER/2;
  20. gdy = 1*POPUFARE_GLAND_DIAMETER/2;
  21. lip = _MATERIAL_THICKNESS;
  22. back_bracket_dx = w/3;
  23. difference() {
  24. union() {
  25. square([w,h], center=true);
  26. }
  27. // side bracket
  28. //
  29. translate([-(w/2 - bx), 0]) circle(br);
  30. translate([ (w/2 - bx), 0]) circle(br);
  31. translate([ -back_bracket_dx/2, (h/2 - bx)]) circle(br);
  32. translate([ back_bracket_dx/2, (h/2 - bx)]) circle(br);
  33. // lip attachment
  34. //
  35. translate([ 0, -(h/2 - bx)]) circle(br);
  36. }
  37. }
  38. //PopufareHousingBackPlate();