1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-06 23:46:30 +02:00

_box_assembly() fix for corners = 0.

This commit is contained in:
Chris Palmer
2021-09-26 11:26:01 +01:00
parent 6012787781
commit c6b280f0e8

View File

@@ -28,7 +28,7 @@ assembly("box") {
t = sheet_thickness(box_sheets(type)); t = sheet_thickness(box_sheets(type));
for(corner = [0 : corners - 1]) { for(corner = [0 : 1 : corners - 1]) {
x = [-1,1,1,-1][corner]; x = [-1,1,1,-1][corner];
y = [-1,-1,1,1][corner]; y = [-1,-1,1,1][corner];
translate([x * (box_width(type) / 2 + 25 * exploded()), y * (box_depth(type) / 2 + 25 * exploded())]) translate([x * (box_width(type) / 2 + 25 * exploded()), y * (box_depth(type) / 2 + 25 * exploded())])