mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-13 19:14:24 +02:00
Fix for cuboid negative chamfer/rounding overhangs.
This commit is contained in:
@@ -185,7 +185,8 @@ module cuboid(
|
|||||||
// Add multi-edge corners.
|
// Add multi-edge corners.
|
||||||
if (trimcorners) {
|
if (trimcorners) {
|
||||||
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
||||||
if (corner_edge_count(edges, [xa,ya,za]) > 1) {
|
ce = corner_edges(edges, [xa,ya,za]);
|
||||||
|
if (ce.x + ce.y > 1) {
|
||||||
translate(vmul([xa,ya,za]/2, size+[ach-0.01,ach-0.01,-ach])) {
|
translate(vmul([xa,ya,za]/2, size+[ach-0.01,ach-0.01,-ach])) {
|
||||||
cube([ach+0.01,ach+0.01,ach], center=true);
|
cube([ach+0.01,ach+0.01,ach], center=true);
|
||||||
}
|
}
|
||||||
@@ -270,7 +271,8 @@ module cuboid(
|
|||||||
// Add multi-edge corners.
|
// Add multi-edge corners.
|
||||||
if (trimcorners) {
|
if (trimcorners) {
|
||||||
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
for (za=[-1,1], ya=[-1,1], xa=[-1,1]) {
|
||||||
if (corner_edge_count(edges, [xa,ya,za]) > 1) {
|
ce = corner_edges(edges, [xa,ya,za]);
|
||||||
|
if (ce.x + ce.y > 1) {
|
||||||
translate(vmul([xa,ya,za]/2, size+[ard-0.01,ard-0.01,-ard])) {
|
translate(vmul([xa,ya,za]/2, size+[ard-0.01,ard-0.01,-ard])) {
|
||||||
cube([ard+0.01,ard+0.01,ard], center=true);
|
cube([ard+0.01,ard+0.01,ard], center=true);
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,504];
|
BOSL_VERSION = [2,0,505];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user