mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Correct suboid() asserts.
This commit is contained in:
parent
0bce88654d
commit
76d03aeea2
1 changed files with 3 additions and 0 deletions
|
@ -174,6 +174,7 @@ module cuboid(
|
|||
}
|
||||
}
|
||||
} else if (chamfer<0) {
|
||||
assert(edges == EDGES_ALL || edges[2] == [0,0,0,0], "Cannot use negative chamfer with Z aligned edges.");
|
||||
ach = abs(chamfer);
|
||||
cube(size, center=true);
|
||||
|
||||
|
@ -260,6 +261,7 @@ module cuboid(
|
|||
}
|
||||
}
|
||||
} else if (rounding<0) {
|
||||
assert(edges == EDGES_ALL || edges[2] == [0,0,0,0], "Cannot use negative rounding with Z aligned edges.");
|
||||
ard = abs(rounding);
|
||||
cube(size, center=true);
|
||||
|
||||
|
@ -322,6 +324,7 @@ module cuboid(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function cuboid(
|
||||
size=[1,1,1],
|
||||
p1, p2,
|
||||
|
|
Loading…
Reference in a new issue