mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
minkowski_difference() 3d bugfix.
This commit is contained in:
parent
1a9b683890
commit
6fb0343016
2 changed files with 10 additions and 5 deletions
|
@ -49,11 +49,16 @@ module bounding_box(excess=0, planar=true) {
|
||||||
|
|
||||||
// a bounding box with an offset of 1 in all axis
|
// a bounding box with an offset of 1 in all axis
|
||||||
module _oversize_bbox() {
|
module _oversize_bbox() {
|
||||||
minkowski() {
|
if (planar) {
|
||||||
_xProjection() children(); // x axis
|
minkowski() {
|
||||||
union() {
|
_xProjection() children(); // x axis
|
||||||
rotate(-90) _xProjection() rotate(90) children(); // y 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,495];
|
BOSL_VERSION = [2,0,496];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue