mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
Merge pull request #896 from revarbat/revarbat_dev
Fixed Issue #894 semi-random cuboid() chamfer bug.
This commit is contained in:
commit
05e65e4492
@ -247,8 +247,7 @@ module cuboid(
|
|||||||
xtcyl(l=m, r=r);
|
xtcyl(l=m, r=r);
|
||||||
multmatrix(mat)
|
multmatrix(mat)
|
||||||
linear_extrude(height=m+0.1, center=true)
|
linear_extrude(height=m+0.1, center=true)
|
||||||
scale(r+0.02)
|
polygon([[r,0],[0.99*r,0],[0,0.99*r],[0,r],[r,r]]);
|
||||||
polygon([[1,0],[0,1],[1,1]]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (e.y) {
|
} else if (e.y) {
|
||||||
@ -260,8 +259,7 @@ module cuboid(
|
|||||||
ytcyl(l=m, r=r);
|
ytcyl(l=m, r=r);
|
||||||
multmatrix(mat)
|
multmatrix(mat)
|
||||||
linear_extrude(height=m+0.1, center=true)
|
linear_extrude(height=m+0.1, center=true)
|
||||||
scale(r+0.02)
|
polygon([[r,0],[0.99*r,0],[0,0.99*r],[0,r],[r,r]]);
|
||||||
polygon([[1,0],[0,1],[1,1]]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (e.z) {
|
} else if (e.z) {
|
||||||
@ -273,8 +271,7 @@ module cuboid(
|
|||||||
zcyl(l=m, r=r);
|
zcyl(l=m, r=r);
|
||||||
multmatrix(mat)
|
multmatrix(mat)
|
||||||
linear_extrude(height=m+0.1, center=true)
|
linear_extrude(height=m+0.1, center=true)
|
||||||
scale(r+0.02)
|
polygon([[r,0],[0.99*r,0],[0,0.99*r],[0,r],[r,r]]);
|
||||||
polygon([[1,0],[0,1],[1,1]]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user