fix ventilation for sidewalls

This commit is contained in:
zhao
2023-08-13 12:51:21 -04:00
parent 07dee71795
commit 7b0ea16b04
21 changed files with 94 additions and 104 deletions

View File

@ -4,37 +4,9 @@ include <./sideWallBase.scad>
module sideWallLeft() {
applySideWallVerticalRibs()
applyEpicVentilation()
numVentsCustom = ceil((sideWallZ - 2*sideWallDefaultVentilationToYEdge)/10);
applySideWallBracing(numRibs=2)
applySideWallDefaultVentilation(numVents=numVentsCustom)
sideWallBase();
module applyEpicVentilation() {
apply_n() {
for (i = [1:8]) {
translate(v = [0, 41, i * 12 + 10])
vent();
}
children(0);
}
module vent() {
minkowski() {
rotate(a=[0,90,0])
cylinder(r=2,h=1);
cube(size = [10, 100, 1]);
}
}
}
module applySideWallVerticalRibs() {
echo("sideWallZ", sideWallZ);
apply_p() {
translate(v = [0, 30, 0])
sideWallVerticalRibs(numRibs = 2, ribZ = sideWallZ, ribYDiff = 120, ribExtrusion = 1.5);
children(0);
}
}
}