PopufareHousingSideLeft.scad 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. defa = POPUFARE_BRACKET_DE_MEDIUM;
  20. lip = _MATERIAL_THICKNESS;
  21. buck_dw0 = POPUFARE_BUCK_HOLE_WIDTH0;
  22. buck_dw1 = POPUFARE_BUCK_HOLE_WIDTH1;
  23. buck_dh = POPUFARE_BUCK_HOLE_DH;
  24. buck_r = POPUFARE_BUCK_HOLE_R;
  25. //buck_center = [35,-3];
  26. buck_center = [25,-3];
  27. back_h = POPUFARE_HOUSING_HEIGHT - POPUFARE_HOUSING_BACK_LIP_HEIGHT;
  28. back_lip_inset = POPUFARE_HOUSING_BACK_LIP_INSET;
  29. back_lip_screw_h = (h/2 - dh + bx);
  30. difference() {
  31. union() {
  32. square([w,h], center=true);
  33. translate([-(w/2-dh),h/2 + lip/2])
  34. difference() {
  35. square([lip, lip], center=true);
  36. translate([-lip,-lip]) rotate(45, [0,0,1]) square([3*lip, 3*lip]);
  37. }
  38. translate([-w/2,h/2 - dh])
  39. difference() {
  40. square([lip, lip], center=true);
  41. translate([-lip,-lip]) rotate(45, [0,0,1]) square([3*lip, 3*lip]);
  42. }
  43. }
  44. // chop off angle
  45. //
  46. translate([-w/2,-(h/2-POPUFARE_FRONT_HEIGHT)]) rotate(45, [0,0,1]) square([4*w,4*w]);
  47. // bottom bracket
  48. //
  49. translate([-(w/2-de), -(h/2-bx) ]) circle(br);
  50. translate([ (w/2-de), -(h/2-bx) ]) circle(br);
  51. // front bracket
  52. //
  53. translate( [ -(w/2-bx), -(h/2 - POPUFARE_FRONT_HEIGHT/2) ]) circle(br);
  54. // front angle bracket
  55. //
  56. translate([-w/2, -(h/2-POPUFARE_FRONT_HEIGHT)]) rotate(45, [0,0,1])
  57. //translate([de/2, -bx]) circle(br);
  58. translate([defa, -bx]) circle(br);
  59. translate([-w/2, -(h/2-POPUFARE_FRONT_HEIGHT)]) rotate(45, [0,0,1])
  60. //translate([alen - de/2, -bx]) circle(br);
  61. translate([alen - defa, -bx]) circle(br);
  62. // top bracket
  63. //
  64. //translate([ (w/2 - (w_right/2.0)), (h/2 - bx) ]) circle(br);
  65. translate([ (w/2 - des), (h/2 - bx) ]) circle(br);
  66. translate([ (w/2 - (w_right) + des), (h/2 - bx) ]) circle(br);
  67. // buck screw attachment
  68. //
  69. translate(buck_center)
  70. union() {
  71. translate([-buck_dw0/2, -buck_dh/2]) circle(buck_r);
  72. translate([ buck_dw0/2, -buck_dh/2]) circle(buck_r);
  73. translate([-buck_dw1/2, buck_dh/2]) circle(buck_r);
  74. translate([ buck_dw1/2, buck_dh/2]) circle(buck_r);
  75. }
  76. // back panel brackets
  77. //
  78. translate([w/2 - bx, h/2 - back_h/2]) circle(br);
  79. // lip attachment bracket
  80. //
  81. translate([ (w/2 - back_lip_inset/2), h/2 - back_h + bx]) circle(br);
  82. // usb power out
  83. //
  84. //translate([0,-h/4-10]) translate([0,_POWER_USB_HOLE_DW/2]) circle(_POWER_USB_HOLE_R);
  85. //translate([0,-h/4-10]) translate([0,-_POWER_USB_HOLE_DW/2]) circle(_POWER_USB_HOLE_R);
  86. }
  87. }
  88. //PopufareHousingSideLeftPlate();