33 lines
812 B
OpenSCAD
33 lines
812 B
OpenSCAD
/* https://github.com/BelfrySCAD/BOSL2 */
|
|
include <BOSL2/std.scad>
|
|
|
|
cube_h = 80;
|
|
cube_w = 80;
|
|
cube_d = 40;
|
|
|
|
rounding = 2;
|
|
|
|
oval_cutout_h = 15;
|
|
|
|
rect_cutout_w = 45;
|
|
rect_cutout_h = 65-oval_cutout_h;
|
|
|
|
$fn=150;
|
|
|
|
difference() {
|
|
cuboid([cube_w,cube_d,cube_h], rounding=rounding, anchor=[0,0,-1]);
|
|
|
|
group() {
|
|
rotate([90,0,0])
|
|
difference() {
|
|
cuboid([rect_cutout_w,rect_cutout_h,cube_d], chamfer=-rounding, anchor=[0,-1,0]);
|
|
translate([0,rect_cutout_h,0])
|
|
cuboid([2*rect_cutout_w,rect_cutout_h,cube_d], anchor=[0,-1,0]);
|
|
}
|
|
translate([0,0,rect_cutout_h])
|
|
resize([0,0,2*oval_cutout_h])
|
|
rotate([90,0,0])
|
|
cyl(h=cube_d, d=rect_cutout_w, chamfer=-rounding);
|
|
}
|
|
}
|