Add cube_round_xy.scad

This commit is contained in:
greygoo
2022-03-13 03:04:50 +01:00
parent 8470d68877
commit 5e8e7e3e6d

17
cube_round_xy.scad Normal file
View File

@@ -0,0 +1,17 @@
// Module for painting cube with rounded corners in xy directions
module cube_round_xy(dim,mki){
if(mki<=0){
cube(dim);
}
else {
translate([mki/2,mki/2,0]){
linear_extrude(dim[2]){
minkowski(){
square([dim[0]-mki,dim[1]-mki]);
circle(d=mki);
}
}
}
}
}