minkowski_difference() 3d bugfix.

This commit is contained in:
Garth Minette 2020-12-29 22:04:47 -08:00
parent 1a9b683890
commit 6fb0343016
2 changed files with 10 additions and 5 deletions

View file

@ -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() {
if (planar) {
minkowski() {
_xProjection() children(); // x axis
union() {
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
}
}
}

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,495];
BOSL_VERSION = [2,0,496];
// Section: BOSL Library Version Functions