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:
@@ -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);
|
||||
|
@@ -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. |
|
||||
|
Reference in New Issue
Block a user