PopufareHousingBack.scad 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Copyright (c) 2019 Clementine Computing LLC.
  3. *
  4. * This file is part of PopuFare.
  5. *
  6. * PopuFare is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * PopuFare is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  18. *
  19. */
  20. include <PopufareHousingCommon.scad>
  21. module PopufareHousingBackPlate() {
  22. w = POPUFARE_HOUSING_WIDTH;
  23. h = POPUFARE_HOUSING_HEIGHT;
  24. fixture_dx = POPUFARE_FIXTURE_DX;
  25. fixture_dy = POPUFARE_FIXTURE_DY;
  26. fixture_bolt = 5.0/2.0;
  27. bx = POPUFARE_BRACKET_CX;
  28. br = POPUFARE_BRACKET_D/2.0;
  29. gland_cx = 0;
  30. gland_cy = -(h/2 - 1.5*POPUFARE_GLAND_DIAMETER);
  31. gdx = 1*POPUFARE_GLAND_DIAMETER/2;
  32. gdy = 1*POPUFARE_GLAND_DIAMETER/2;
  33. difference() {
  34. square([w,h], center=true);
  35. // gland cable assembly access
  36. //
  37. translate([gland_cx, gland_cy]) circle(POPUFARE_GLAND_DIAMETER/2.0);
  38. // optional plate fixture points (in case we need to close off or alter
  39. // the gland assembly diameter
  40. //
  41. translate([gland_cx + gdx, gland_cy + gdy]) circle(_M3r);
  42. translate([gland_cx - gdx, gland_cy + gdy]) circle(_M3r);
  43. translate([gland_cx - gdx, gland_cy - gdy]) circle(_M3r);
  44. translate([gland_cx + gdx, gland_cy - gdy]) circle(_M3r);
  45. // side bracket attachments
  46. //
  47. //translate([ (w/2 - bx), (h/2-POPUFARE_BRACKET_DE)]) circle(br);
  48. //translate([ (w/2 - bx),-(h/2-POPUFARE_BRACKET_DE)]) circle(br);
  49. //translate([-(w/2 - bx), (h/2-POPUFARE_BRACKET_DE)]) circle(br);
  50. //translate([-(w/2 - bx),-(h/2-POPUFARE_BRACKET_DE)]) circle(br);
  51. // top bracket attachments
  52. //
  53. translate([ (w/2 - POPUFARE_BRACKET_DE), (h/2 - bx)]) circle(br);
  54. translate([-(w/2 - POPUFARE_BRACKET_DE), (h/2 - bx)]) circle(br);
  55. // bottom bracket attachments
  56. //
  57. translate([ (w/2 - POPUFARE_BRACKET_DE), -(h/2 - bx)]) circle(br);
  58. translate([-(w/2 - POPUFARE_BRACKET_DE), -(h/2 - bx)]) circle(br);
  59. // hinge assembly attachment
  60. //
  61. }
  62. }
  63. //PopufareHousingBackPlate();