mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-05 21:47:39 +02:00
minkowski_difference() 3d bugfix.
This commit is contained in:
@@ -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() {
|
||||||
|
if (planar) {
|
||||||
minkowski() {
|
minkowski() {
|
||||||
_xProjection() children(); // x axis
|
_xProjection() children(); // x axis
|
||||||
union() {
|
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user