1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-02 20:02:46 +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);