mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-09 08:56:29 +02:00
Can now override the front panel width of a butt_box to make it wider.
This commit is contained in:
@@ -169,7 +169,7 @@ module bbox_right_blank(type, sheet = false) { //! 2D template for the right sid
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module bbox_front_blank(type, sheet = false) { //! 2D template for the front
|
module bbox_front_blank(type, sheet = false, width = 0) { //! 2D template for the front
|
||||||
dxf(str(bbox_name(type), "_front"));
|
dxf(str(bbox_name(type), "_front"));
|
||||||
|
|
||||||
t = sheet_thickness(bbox_sheets(type));
|
t = sheet_thickness(bbox_sheets(type));
|
||||||
@@ -178,7 +178,7 @@ module bbox_front_blank(type, sheet = false) { //! 2D template for the front
|
|||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
translate([0, (bt - bb) / 2])
|
translate([0, (bt - bb) / 2])
|
||||||
sheet_2D(subst_sheet(type, sheet), bbox_width(type) + 2 * t, bbox_height(type) + bb + bt);
|
sheet_2D(subst_sheet(type, sheet), max(bbox_width(type) + 2 * t, width), bbox_height(type) + bb + bt);
|
||||||
|
|
||||||
drill_holes(type, rotate([-90, 0, 0]) * translate([0, bbox_depth(type) / 2]));
|
drill_holes(type, rotate([-90, 0, 0]) * translate([0, bbox_depth(type) / 2]));
|
||||||
}
|
}
|
||||||
|
@@ -3258,7 +3258,6 @@ Uses [fixing blocks](#fixing_block) and [corner blocks](#corner_block).
|
|||||||
| ```bbox_base(type)``` | Default base, can be overridden to customise |
|
| ```bbox_base(type)``` | Default base, can be overridden to customise |
|
||||||
| ```bbox_base_blank(type)``` | 2D template for the base |
|
| ```bbox_base_blank(type)``` | 2D template for the base |
|
||||||
| ```bbox_front(type)``` | Default front, can be overridden to customise |
|
| ```bbox_front(type)``` | Default front, can be overridden to customise |
|
||||||
| ```bbox_front_blank(type, sheet = false)``` | 2D template for the front |
|
|
||||||
| ```bbox_front_blank(type, sheet = false, width = 0)``` | 2D template for the front |
|
| ```bbox_front_blank(type, sheet = false, width = 0)``` | 2D template for the front |
|
||||||
| ```bbox_left(type)``` | Default left side, can be overridden to customise |
|
| ```bbox_left(type)``` | Default left side, can be overridden to customise |
|
||||||
| ```bbox_left_blank(type, sheet = false)``` | 2D template for the left side |
|
| ```bbox_left_blank(type, sheet = false)``` | 2D template for the left side |
|
||||||
|
Reference in New Issue
Block a user