PopufareHousingBack.scad 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 PopufareHousingBackPlate() {
  10. dh = POPUFARE_HOUSING_HEIGHT - POPUFARE_FRONT_HEIGHT;
  11. top_dh = POPUFARE_HOUSING_HEIGHT - POPUFARE_FRONT_HEIGHT;
  12. lip = _MATERIAL_THICKNESS;
  13. top_w = POPUFARE_HOUSING_WIDTH;
  14. top_h = POPUFARE_HOUSING_DEPTH-dh;
  15. back_w = POPUFARE_HOUSING_WIDTH;
  16. back_h = POPUFARE_HOUSING_HEIGHT - POPUFARE_HOUSING_BACK_LIP_HEIGHT;
  17. lip_w = POPUFARE_HOUSING_WIDTH;
  18. lip_h = POPUFARE_HOUSING_BACK_LIP_SPACE;
  19. bend_thick = 1.5;
  20. bend_w = POPUFARE_HOUSING_WIDTH;
  21. bend_h = bend_thick;
  22. screw_ofy = POPUFARE_HOUSING_BACK_LIP_SCREW_OFFSET_BACK_Y;
  23. screw_dx = POPUFARE_HOUSING_BACK_LIP_SCREW_DX;
  24. screw_r = _LIP_SCREW_D/2;
  25. notch_w = 5;
  26. notch_h = 5;
  27. difference() {
  28. union() {
  29. translate([0,-(back_h/2+bend_thick+top_h/2)]) square([top_w, top_h], center=true);
  30. translate([0,-(back_h/2+bend_thick/2)]) square([bend_w,bend_h], center=true);
  31. square([back_w,back_h], center=true);
  32. translate([0,(back_h/2+bend_thick/2)]) square([bend_w, bend_h], center=true);
  33. translate([0,(back_h/2+bend_thick+lip_h/2)]) square([lip_w,lip_h], center=true);
  34. }
  35. // notches
  36. //
  37. translate([-(bend_w/2-notch_w/2),-(back_h/2+bend_thick/2)]) square([notch_w,notch_h], center=true);
  38. translate([ (bend_w/2-notch_w/2),-(back_h/2+bend_thick/2)]) square([notch_w,notch_h], center=true);
  39. translate([-(bend_w/2-notch_w/2), (back_h/2+bend_thick/2)]) square([notch_w,notch_h], center=true);
  40. translate([ (bend_w/2-notch_w/2), (back_h/2+bend_thick/2)]) square([notch_w,notch_h], center=true);
  41. // attachment holes
  42. //
  43. translate([-screw_dx/2, (back_h/2 + lip_h - screw_ofy)]) circle(screw_r);
  44. translate([ screw_dx/2, (back_h/2 + lip_h - screw_ofy)]) circle(screw_r);
  45. }
  46. }
  47. //PopufareHousingBackPlate();