PopufareHousingSideLeft.scad 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 PopufareHousingSideLeftPlate() {
  10. w = POPUFARE_HOUSING_DEPTH;
  11. h = POPUFARE_HOUSING_HEIGHT;
  12. br = POPUFARE_BRACKET_D/2.0;
  13. bx = POPUFARE_BRACKET_CX;
  14. de = POPUFARE_BRACKET_DE;
  15. des = POPUFARE_BRACKET_DE_SHORT;
  16. dh = POPUFARE_HOUSING_HEIGHT - POPUFARE_FRONT_HEIGHT;
  17. alen = dh*sqrt(2.0);
  18. w_right = w - dh;
  19. lip = _MATERIAL_THICKNESS;
  20. difference() {
  21. union() {
  22. square([w,h], center=true);
  23. // bottom skirt to cover under plate
  24. //
  25. translate([0,-(h/2 + lip/2)]) square([w,lip], center=true);
  26. translate([-(w/2-dh),h/2 + lip/2])
  27. difference() {
  28. square([lip, lip], center=true);
  29. translate([-lip,-lip]) rotate(45, [0,0,1]) square([3*lip, 3*lip]);
  30. }
  31. translate([-w/2,h/2 - dh])
  32. difference() {
  33. square([lip, lip], center=true);
  34. translate([-lip,-lip]) rotate(45, [0,0,1]) square([3*lip, 3*lip]);
  35. }
  36. }
  37. // chop off angle
  38. //
  39. translate([-w/2,-(h/2-POPUFARE_FRONT_HEIGHT)]) rotate(45, [0,0,1]) square([4*w,4*w]);
  40. // bottom bracket
  41. //
  42. translate([-(w/2-de), -(h/2-bx) ]) circle(br);
  43. translate([ (w/2-de), -(h/2-bx) ]) circle(br);
  44. // front bracket
  45. //
  46. translate( [ -(w/2-bx), -(h/2 - POPUFARE_FRONT_HEIGHT/2) ]) circle(br);
  47. // front angle bracket
  48. //
  49. translate([-w/2, -(h/2-POPUFARE_FRONT_HEIGHT)]) rotate(45, [0,0,1])
  50. translate([de/2, -bx]) circle(br);
  51. translate([-w/2, -(h/2-POPUFARE_FRONT_HEIGHT)]) rotate(45, [0,0,1])
  52. translate([alen - de/2, -bx]) circle(br);
  53. // top bracket
  54. //
  55. //translate([ (w/2 - (w_right/2.0)), (h/2 - bx) ]) circle(br);
  56. translate([ (w/2 - des), (h/2 - bx) ]) circle(br);
  57. translate([ (w/2 - (w_right) + des), (h/2 - bx) ]) circle(br);
  58. // no back bracket
  59. //
  60. }
  61. }
  62. //PopufareHousingSideLeftPlate();