case.scad: remove the hardcoded PPBody() from helpers

This commit is contained in:
2023-12-22 22:52:10 +00:00
parent 6432d98aff
commit a7e735720f

View File

@@ -70,7 +70,7 @@ module _PeripheralCutouts(ButtonStyle) {
module _FrontFace(tol=tol) {
color("thistle")
difference() {
translate([0, 0, -Thickness]) PPBody();
translate([0, 0, -Thickness]) children();
_PhoneBulkLayer(tol=tol);
};
}
@@ -85,11 +85,11 @@ module _FrontKeep(tol=tol) {
difference() {
minkowski() {
cylinder(r=2*tol, h=tol, center=true);
_FrontFace();
_FrontFace() children();
};
minkowski() {
cylinder(r=tol, h=2*tol, center=true);
_FrontFace();
_FrontFace() children();
};
};
// and expand it
@@ -103,8 +103,8 @@ module _FrontKeep(tol=tol) {
/// the returned cutout is strictly z <= 0,
module _FrontCutout() {
difference() {
_FrontFace();
_FrontKeep();
_FrontFace() children();
_FrontKeep() children();
};
}
@@ -136,7 +136,7 @@ module Case(ButtonStyle="extrude")
children(buttons);
};
// subtract the touchscreen area
translate([0, 0, tol]) _FrontCutout();
translate([0, 0, tol]) _FrontCutout() children(body);
}
}
}
@@ -152,8 +152,8 @@ union() {
};
// debugging:
// _FrontFace();
// _FrontKeep();
// _FrontCutout();
// Phone();
// _FrontFace() PPBody();
// _FrontKeep() PPBody();
// _FrontCutout() PPBody();
// PPBody();
}