mirror of
https://github.com/greygoo/openscad-libraries.git
synced 2025-10-24 11:00:49 -07:00
18 lines
389 B
OpenSCAD
18 lines
389 B
OpenSCAD
// 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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|