mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
bug fix
This commit is contained in:
parent
6d3eabddc5
commit
958dcf0b18
1 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ module cuboid(
|
||||||
orient=UP
|
orient=UP
|
||||||
) {
|
) {
|
||||||
module corner_shape(corner) {
|
module corner_shape(corner) {
|
||||||
e = corner_edges(edges, corner);
|
e = _corner_edges(edges, corner);
|
||||||
cnt = sum(e);
|
cnt = sum(e);
|
||||||
r = first_defined([chamfer, rounding, 0]);
|
r = first_defined([chamfer, rounding, 0]);
|
||||||
c = [min(r,size.x/2), min(r,size.y/2), min(r,size.z/2)];
|
c = [min(r,size.x/2), min(r,size.y/2), min(r,size.z/2)];
|
||||||
|
@ -292,7 +292,7 @@ module cuboid(
|
||||||
// Add multi-edge corners.
|
// Add multi-edge corners.
|
||||||
if (trimcorners) {
|
if (trimcorners) {
|
||||||
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
||||||
ce = corner_edges(edges, [xa,ya,za]);
|
ce = _corner_edges(edges, [xa,ya,za]);
|
||||||
if (ce.x + ce.y > 1) {
|
if (ce.x + ce.y > 1) {
|
||||||
translate(v_mul([xa,ya,za]/2, size+[ach-0.01,ach-0.01,-ach])) {
|
translate(v_mul([xa,ya,za]/2, size+[ach-0.01,ach-0.01,-ach])) {
|
||||||
cube([ach+0.01,ach+0.01,ach], center=true);
|
cube([ach+0.01,ach+0.01,ach], center=true);
|
||||||
|
@ -379,7 +379,7 @@ module cuboid(
|
||||||
// Add multi-edge corners.
|
// Add multi-edge corners.
|
||||||
if (trimcorners) {
|
if (trimcorners) {
|
||||||
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
||||||
ce = corner_edges(edges, [xa,ya,za]);
|
ce = _corner_edges(edges, [xa,ya,za]);
|
||||||
if (ce.x + ce.y > 1) {
|
if (ce.x + ce.y > 1) {
|
||||||
translate(v_mul([xa,ya,za]/2, size+[ard-0.01,ard-0.01,-ard])) {
|
translate(v_mul([xa,ya,za]/2, size+[ard-0.01,ard-0.01,-ard])) {
|
||||||
cube([ard+0.01,ard+0.01,ard], center=true);
|
cube([ard+0.01,ard+0.01,ard], center=true);
|
||||||
|
|
Loading…
Reference in a new issue