PopufareHousingSideLeft.scad 2.7 KB

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