mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-27 09:10:02 -05:00
Can now change the box shelf material.
This commit is contained in:
parent
a3e51d2607
commit
8014aadd1d
@ -397,16 +397,6 @@ module box_bezel_section(type, bottom, rows, cols, x, y) { //! Generates interlo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module box_shelf_blank(type) { //! Generates a 2D template for a shelf sheet
|
|
||||||
dxf("box_shelf");
|
|
||||||
|
|
||||||
difference() {
|
|
||||||
sheet_2D(box_sheets(type), box_width(type) - bezel_clearance, box_depth(type) - bezel_clearance, 1);
|
|
||||||
|
|
||||||
offset(bezel_clearance / 2)
|
|
||||||
box_corner_quadrants(type, box_width(type), box_depth(type));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module box_screw_hole_positions(type)
|
module box_screw_hole_positions(type)
|
||||||
for(x = [-1, 1], y = [-1, 1])
|
for(x = [-1, 1], y = [-1, 1])
|
||||||
@ -439,6 +429,17 @@ function subst_sheet(type, sheet) =
|
|||||||
let(s = box_sheets(type))
|
let(s = box_sheets(type))
|
||||||
sheet ? assert(sheet_thickness(sheet) == sheet_thickness(s)) sheet : s;
|
sheet ? assert(sheet_thickness(sheet) == sheet_thickness(s)) sheet : s;
|
||||||
|
|
||||||
|
module box_shelf_blank(type, sheet = false) { //! Generates a 2D template for a shelf sheet
|
||||||
|
dxf("box_shelf");
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
sheet_2D(subst_sheet(type, sheet), box_width(type) - bezel_clearance, box_depth(type) - bezel_clearance, 1);
|
||||||
|
|
||||||
|
offset(bezel_clearance / 2)
|
||||||
|
box_corner_quadrants(type, box_width(type), box_depth(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
module box_left_blank(type, sheet = false) { //! Generates a 2D template for the left sheet, ```sheet``` can be set to override the type
|
module box_left_blank(type, sheet = false) { //! Generates a 2D template for the left sheet, ```sheet``` can be set to override the type
|
||||||
dxf("box_left");
|
dxf("box_left");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user