PopufareHousingBack.scad 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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;
  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. hinge_w = POPUFARE_HINGE_BACK_HOLE_WIDTH;
  22. hinge_de = POPUFARE_HINGE_BACK_HOLE_DE;
  23. hinge_r = POPUFARE_HINGE_D/2;
  24. difference() {
  25. square([w,h], center=true);
  26. // gland cable assembly access
  27. //
  28. translate([gland_cx, gland_cy]) circle(POPUFARE_GLAND_DIAMETER/2.0);
  29. // optional plate fixture points (in case we need to close off or alter
  30. // the gland assembly diameter
  31. //
  32. translate([gland_cx + gdx, gland_cy + gdy]) circle(_M3r);
  33. translate([gland_cx - gdx, gland_cy + gdy]) circle(_M3r);
  34. translate([gland_cx - gdx, gland_cy - gdy]) circle(_M3r);
  35. translate([gland_cx + gdx, gland_cy - gdy]) circle(_M3r);
  36. // side bracket attachments
  37. //
  38. //translate([ (w/2 - bx), (h/2-POPUFARE_BRACKET_DE)]) circle(br);
  39. //translate([ (w/2 - bx),-(h/2-POPUFARE_BRACKET_DE)]) circle(br);
  40. //translate([-(w/2 - bx), (h/2-POPUFARE_BRACKET_DE)]) circle(br);
  41. //translate([-(w/2 - bx),-(h/2-POPUFARE_BRACKET_DE)]) circle(br);
  42. // top bracket attachments
  43. //
  44. //translate([ (w/2 - POPUFARE_BRACKET_DE), (h/2 - bx)]) circle(br);
  45. //translate([-(w/2 - POPUFARE_BRACKET_DE), (h/2 - bx)]) circle(br);
  46. // hinge attachment
  47. //
  48. translate([ -hinge_w/2, h/2 - hinge_de ]) circle(hinge_r);
  49. translate([ hinge_w/2, h/2 - hinge_de ]) circle(hinge_r);
  50. // bottom bracket attachments
  51. //
  52. //translate([ (w/2 - POPUFARE_BRACKET_DE), -(h/2 - bx)]) circle(br);
  53. //translate([-(w/2 - POPUFARE_BRACKET_DE), -(h/2 - bx)]) circle(br);
  54. // hinge assembly attachment
  55. //
  56. }
  57. }
  58. //PopufareHousingBackPlate();