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