From 9666c018a0a99be8d24a2454a4c1448b09f83af0 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 5 Feb 2024 19:16:10 +0000 Subject: [PATCH] Made sheet overridable in box_base_blank(). --- printed/box.scad | 5 +++-- readme.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/printed/box.scad b/printed/box.scad index 62c9d1f..dbd5a97 100644 --- a/printed/box.scad +++ b/printed/box.scad @@ -452,9 +452,10 @@ module box_screw_hole_positions(type) { children(); } -module box_base_blank(type) { //! Generates a 2D template for the base sheet +module box_base_blank(type, sheet = false) { //! Generates a 2D template for the base sheet, `sheet` can be set to override the type + s = sheet ? sheet : box_base_sheet(type); difference() { - sheet_2D(box_base_sheet(type), box_width(type), box_depth(type), box_sheet_r(type)); + sheet_2D(s, box_width(type), box_depth(type), box_sheet_r(type)); box_screw_hole_positions(type) drill(screw_clearance_radius(box_screw(type)), 0); diff --git a/readme.md b/readme.md index 4729bc3..8320177 100644 --- a/readme.md +++ b/readme.md @@ -5090,7 +5090,7 @@ The top bezel can have an optional child, which is subtracted to allow modificat | `box_back(type)` | Default back, can be overridden to customise | | `box_back_blank(type, sheet = false)` | Generates a 2D template for the back sheet, `sheet` can be set to override the type | | `box_base(type)` | Default base, can be overridden to customise | -| `box_base_blank(type)` | Generates a 2D template for the base sheet | +| `box_base_blank(type, sheet = false)` | Generates a 2D template for the base sheet, `sheet` can be set to override the type | | `box_bezel(type, bottom)` | Generates top and bottom bezel STLs | | `box_bezel_section(type, bottom, rows, cols, x, y)` | Generates interlocking sections of the bezel to allow it to be bigger than the printer | | `box_corner_profile(type)` | Generates the corner profile STL for 3D printing. |