PopufareHousingTop.scad 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 PopufareHousingTopPlate() {
  10. dh = POPUFARE_HOUSING_HEIGHT - POPUFARE_FRONT_HEIGHT;
  11. w = POPUFARE_HOUSING_WIDTH;
  12. h = POPUFARE_HOUSING_DEPTH-dh;
  13. bx = POPUFARE_BRACKET_CX;
  14. br = POPUFARE_BRACKET_D/2.0;
  15. de = POPUFARE_BRACKET_DE;
  16. lip = _MATERIAL_THICKNESS;
  17. difference() {
  18. union() {
  19. square([w,h], center=true);
  20. };
  21. // shave off top front panel to accomodate angle plate
  22. //
  23. translate([0, -(h/2 - lip)]) square([w, lip], center=true);
  24. // attach to back plate bracket
  25. //
  26. translate([ -(w/2 - de), (h/2-bx) ]) circle(br);
  27. translate([ (w/2 - de), (h/2-bx) ]) circle(br);
  28. // side plate bracket attachment
  29. //
  30. translate([ -(w/2 - bx), 0]) circle(br);
  31. translate([ (w/2 - bx), 0]) circle(br);
  32. }
  33. }
  34. //PopufareHousingTopPlate();