1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-10 17:33:57 +02:00

Made sheet overridable in box_base_blank().

This commit is contained in:
Chris Palmer
2024-02-05 19:16:10 +00:00
parent 8372655f25
commit 9666c018a0
2 changed files with 4 additions and 3 deletions

View File

@@ -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);

View File

@@ -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. |