PopufareHousingBackLipAttachment.scad 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. difference() {
  22. union() {
  23. square([w,h], center=true);
  24. }
  25. // helper to see where lip is
  26. //
  27. translate([-w/2, h/2 - h0]) square([4,1], center=true);
  28. translate([ w/2, h/2 - h0]) square([4,1], center=true);
  29. // lip screw attachments (1/4 inch bolt)
  30. //
  31. translate([ -screw_dx/2, (h/2 - screw_ofy) ]) circle(screw_r);
  32. translate([ screw_dx/2, (h/2 - screw_ofy) ]) circle(screw_r);
  33. // bracket to back plate
  34. //
  35. translate([ 0, (h/2 - h0 - bx)]) circle(br);
  36. // bracket to side plates
  37. //
  38. translate([ -(w/2 - bx), (h/2 - h0 - h1/2)]) circle(br);
  39. translate([ (w/2 - bx), (h/2 - h0 - h1/2)]) circle(br);
  40. }
  41. }