PopufareHousingFrontBottom.scad 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 PopufareHousingFrontBottomPlate() {
  22. w = POPUFARE_HOUSING_WIDTH;
  23. h = POPUFARE_FRONT_HEIGHT;
  24. bx = POPUFARE_BRACKET_CX;
  25. br = POPUFARE_BRACKET_D/2.0;
  26. de = POPUFARE_BRACKET_DE;
  27. lip = _MATERIAL_THICKNESS;
  28. lip_top = _MATERIAL_THICKNESS * sqrt(2.0);
  29. difference() {
  30. union() {
  31. square([w,h], center=true);
  32. // lip to cover bottom plate
  33. //
  34. translate([0,-(h/2 + lip/2)]) square([w,lip], center=true);
  35. };
  36. // shave off top front panel to accomodate angle plate
  37. //
  38. translate([0, (h/2 - lip_top)]) square([w, lip_top], center=true);
  39. // attach to bottom plate bracket
  40. //
  41. translate([ -(w/2 - de), -(h/2-bx) ]) circle(br);
  42. translate([ (w/2 - de), -(h/2-bx) ]) circle(br);
  43. // side plate bracket attachment
  44. //
  45. translate([ -(w/2 - bx), 0]) circle(br);
  46. translate([ (w/2 - bx), 0]) circle(br);
  47. }
  48. }
  49. //PopufareHousingFrontBottomPlate();