PopufareHousingBackLipAttachment.scad 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 PopufareHousingBackLipAttachmentPlate() {
  10. de = POPUFARE_BRACKET_DE;
  11. w = POPUFARE_HOUSING_WIDTH;
  12. h = POPUFARE_HOUSING_BACK_LIP_SPACE + POPUFARE_HOUSING_BACK_LIP_INSET;
  13. h0 = POPUFARE_HOUSING_BACK_LIP_SPACE;
  14. h1 = POPUFARE_HOUSING_BACK_LIP_INSET;
  15. screw_ofx = POPUFARE_HOUSING_BACK_LIP_SCREW_OFFSET_SIDE_X;
  16. screw_ofy = POPUFARE_HOUSING_BACK_LIP_SCREW_OFFSET_BACK_Y;
  17. screw_dx = POPUFARE_HOUSING_BACK_LIP_SCREW_DX;
  18. screw_r = _LIP_SCREW_D/2;
  19. br = POPUFARE_BRACKET_D/2.0;
  20. bx = POPUFARE_BRACKET_CX;
  21. aw = (w/2-bx)/1.5;
  22. ah = 1.9*h1;
  23. difference() {
  24. union() {
  25. square([w,h], center=true);
  26. }
  27. // helper to see where lip is
  28. //
  29. translate([-w/2, h/2 - h0]) square([4,1], center=true);
  30. translate([ w/2, h/2 - h0]) square([4,1], center=true);
  31. // lip screw attachments (1/4 inch bolt)
  32. //
  33. translate([ -screw_dx/2, (h/2 - screw_ofy) ]) circle(screw_r);
  34. translate([ screw_dx/2, (h/2 - screw_ofy) ]) circle(screw_r);
  35. // bracket to back plate
  36. //
  37. translate([ 0, (h/2 - h0 - bx)]) circle(br);
  38. // bracket to side plates
  39. //
  40. translate([ -(w/2 - bx), (h/2 - h0 - h1/2)]) circle(br);
  41. translate([ (w/2 - bx), (h/2 - h0 - h1/2)]) circle(br);
  42. translate([ -w/4.5, -h/2 ]) rounded_rect(aw, ah, 3);
  43. translate([ w/4.5, -h/2 ]) rounded_rect(aw, ah, 3);
  44. }
  45. }
  46. //PopufareHousingBackLipAttachmentPlate();