From 6fb034301606e2d7e61786b82cbf6f75ea914dab Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 29 Dec 2020 22:04:47 -0800 Subject: [PATCH] minkowski_difference() 3d bugfix. --- mutators.scad | 13 +++++++++---- version.scad | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/mutators.scad b/mutators.scad index 1e54c6f..2a2556f 100644 --- a/mutators.scad +++ b/mutators.scad @@ -49,11 +49,16 @@ module bounding_box(excess=0, planar=true) { // a bounding box with an offset of 1 in all axis module _oversize_bbox() { - minkowski() { - _xProjection() children(); // x axis - union() { + if (planar) { + minkowski() { + _xProjection() children(); // x axis rotate(-90) _xProjection() rotate(90) children(); // y axis - if(!planar) rotate([0,-90,0]) _xProjection() rotate([0,90,0]) children(); // z axis + } + } else { + minkowski() { + _xProjection() children(); // x axis + rotate(-90) _xProjection() rotate(90) children(); // y axis + rotate([0,-90,0]) _xProjection() rotate([0,90,0]) children(); // z axis } } } diff --git a/version.scad b/version.scad index 10ffe9c..ae8cf68 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,495]; +BOSL_VERSION = [2,0,496]; // Section: BOSL Library Version Functions