housing_layout_3d.scad 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. include <PopufareHousingCommon.scad>
  2. include <PopufareHousingBottom.scad>
  3. include <PopufareHousingFrontAngle.scad>
  4. include <PopufareHousingFrontBottom.scad>
  5. include <PopufareHousingFrontInsideSupport1.scad>
  6. include <PopufareHousingFrontInsideSupport2.scad>
  7. include <PopufareHousingFrontInsideSupport3.scad>
  8. include <PopufareHousingFrontInsideSupport4.scad>
  9. include <PopufareHousingSideLeft.scad>
  10. include <PopufareHousingSideRight.scad>
  11. include <PopufareHousingTop.scad>
  12. include <PopufareHousingBack.scad>
  13. include <PopufareHousingInnerBack.scad>
  14. include <PopufareHousingBackLipAttachment.scad>
  15. spacing = 30;
  16. dw = POPUFARE_HOUSING_WIDTH;
  17. dh = POPUFARE_HOUSING_HEIGHT;
  18. dz = POPUFARE_HOUSING_DEPTH;
  19. dbacklip = POPUFARE_HOUSING_BACK_LIP_HEIGHT;
  20. iw = POPUFARE_INNER_PLATE_HOLE_WIDTH;
  21. ih = POPUFARE_INNER_PLATE_HOLE_HEIGHT;
  22. hh = POPUFARE_FRONT_HEIGHT;
  23. hz = dz-hh;
  24. //PopufareHousingBottomPlate();
  25. translate([ 0, dz/2 + 30, 0])
  26. PopufareHousingBackLipAttachmentPlate();
  27. translate( [ -(dw/2 + spacing), 0, dh/2 + spacing ] ) rotate(-90, [0,1,0]) rotate(-90, [0,0,1])
  28. PopufareHousingSideRightPlate();
  29. translate( [ (dw/2+spacing), 0, dh/2 + spacing ] ) rotate(90, [0,1,0]) rotate(90, [0,0,1])
  30. PopufareHousingSideLeftPlate();
  31. translate( [ 0, -(dh/2 + spacing), hh/2 + spacing]) rotate(90, [1,0,0])
  32. PopufareHousingFrontBottomPlate();
  33. translate( [ 0, -(dh/2 + spacing - 20), hh/2 + spacing]) rotate(90, [1,0,0])
  34. PopufareHousingFrontInsideSupport1Plate();
  35. translate( [ 0, -(dh/2 + spacing - 40), hh/2 + spacing]) rotate(90, [1,0,0])
  36. PopufareHousingFrontInsideSupport2Plate();
  37. translate( [ 0, -(dh/2 + spacing - 60), hh/2 + spacing]) rotate(90, [1,0,0])
  38. PopufareHousingFrontInsideSupport3Plate();
  39. translate( [ 0, -(dh/2 + spacing - 80), hh/2 + spacing]) rotate(90, [1,0,0])
  40. PopufareHousingFrontInsideSupport4Plate();
  41. translate( [ 0, -dz/2, hh + sqrt(2)*(dh-hh)/2 + spacing] ) rotate(45, [1,0,0])
  42. PopufareHousingFrontAnglePlate();
  43. translate( [ 0, dz/2 + spacing, dh/2 + spacing + dbacklip/2] ) rotate(90, [1,0,0])
  44. PopufareHousingBackPlate();
  45. translate( [ 0, dw/2 - 50, dz + spacing] ) PopufareHousingTopPlate();
  46. //---
  47. translate([ 0, -1.3*dh, 90])
  48. rotate(45, [1,0,0])
  49. PopufareHousingInnerBackPlate();