|
|
@@ -2,6 +2,7 @@
|
|
|
// Shared Parameters
|
|
|
// include <params.scad> in all component files
|
|
|
// ============================================================
|
|
|
+include <BOSL2/std.scad>
|
|
|
|
|
|
/* [Design Style] */
|
|
|
EPD_IS_LID = true; // true: epd_case forms the lid ceiling; false: flat ceiling plate
|
|
|
@@ -136,8 +137,8 @@ FPC_CX = OUT_L/2 - epd_case_w/2 + (_fpc_x1 + _fpc_xw/2) - PCB_OX;
|
|
|
FPC_U_DEPTH = FPC_U_T - WALL - 3 + (epd_case_d - (BEZEL_Y + DISP_D));
|
|
|
|
|
|
/* [Shared Helper] */
|
|
|
+// Corner-anchored box (origin at the -X,-Y,-Z corner) with rounded vertical edges,
|
|
|
+// matching the pre-BOSL2 hull-of-cylinders convention used throughout this project.
|
|
|
module rounded_box(l, w, h, r) {
|
|
|
- hull()
|
|
|
- for (dx = [r, l-r], dy = [r, w-r])
|
|
|
- translate([dx, dy, 0]) cylinder(r=r, h=h, $fn=32);
|
|
|
+ cuboid([l, w, h], rounding=r, edges="Z", anchor=BOTTOM+FRONT+LEFT, $fn=32);
|
|
|
}
|