X-Git-Url: https://git.hcoop.net/clinton/prusa3.git/blobdiff_plain/9e4aaf5a7df03ab3d836e86ba32bb3d1417e25a5..4edfdf22fcafac2c2d654223b050fa14726f6566:/box_frame/inc/functions.scad diff --git a/box_frame/inc/functions.scad b/box_frame/inc/functions.scad index 7b61a41..72599d1 100644 --- a/box_frame/inc/functions.scad +++ b/box_frame/inc/functions.scad @@ -45,7 +45,7 @@ module fillet(radius, height=100, $fn=0) { module cube_fillet(size, radius=-1, vertical=[3,3,3,3], top=[0,0,0,0], bottom=[0,0,0,0], center=false, $fn=0){ // - if (use_fillets) { + if (use_fillets == 1) { if (center) { cube_fillet_inside(size, radius, vertical, top, bottom, $fn); } else { @@ -53,7 +53,17 @@ module cube_fillet(size, radius=-1, vertical=[3,3,3,3], top=[0,0,0,0], bottom=[0 cube_fillet_inside(size, radius, vertical, top, bottom, $fn); } } else { - cube(size, center); + if (use_fillets == 2) { + if (center) { + cube_fillet_inside(size, radius, vertical, top, bottom, 4); + } else { + translate([size[0]/2, size[1]/2, size[2]/2]) + cube_fillet_inside(size, radius, vertical, top, bottom, 4); + } + + } else { + cube(size, center); + } } }