PopufareHousingFrontAngle.scad 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 PopufareHousingFrontAnglePlate() {
  22. dh = POPUFARE_HOUSING_HEIGHT - POPUFARE_FRONT_HEIGHT;
  23. w = POPUFARE_HOUSING_WIDTH;
  24. h = sqrt(2.0)*dh;
  25. bx = POPUFARE_BRACKET_CX;
  26. br = POPUFARE_BRACKET_D/2.0;
  27. de = POPUFARE_BRACKET_DE;
  28. lip = _MATERIAL_THICKNESS;
  29. screen_w = POPUFARE_SCREEN_WIDTH;
  30. screen_h = POPUFARE_SCREEN_HEIGHT;
  31. screen_cx = 0;
  32. screen_cy = 0;
  33. screen_attach_dw = screen_w + 8;
  34. screen_attach_dh = screen_h + 8;
  35. difference() {
  36. union() {
  37. square([w,h], center=true);
  38. // lip to cover bottom plate
  39. //
  40. translate([0,-(h/2 + lip/2)]) square([w,lip], center=true);
  41. translate([0, (h/2 + lip/2)]) square([w,lip], center=true);
  42. };
  43. // attach to site plate brackets
  44. //
  45. translate([ -(w/2 - bx), -(h/2-de) ]) circle(br);
  46. translate([ -(w/2 - bx), (h/2-de) ]) circle(br);
  47. translate([ (w/2 - bx), -(h/2-de) ]) circle(br);
  48. translate([ (w/2 - bx), (h/2-de) ]) circle(br);
  49. // screen center
  50. //
  51. translate([screen_cx, screen_cy]) square([screen_w, screen_h], center=true);
  52. translate([screen_cx, screen_cy]) translate([ screen_attach_dw/2, screen_attach_dh/2]) circle(_M3r);
  53. translate([screen_cx, screen_cy]) translate([ screen_attach_dw/2,-screen_attach_dh/2]) circle(_M3r);
  54. translate([screen_cx, screen_cy]) translate([-screen_attach_dw/2,-screen_attach_dh/2]) circle(_M3r);
  55. translate([screen_cx, screen_cy]) translate([-screen_attach_dw/2, screen_attach_dh/2]) circle(_M3r);
  56. }
  57. }
  58. //PopufareHousingFrontAnglePlate();