35 lines
835 B
OpenSCAD
35 lines
835 B
OpenSCAD
/* https://github.com/BelfrySCAD/BOSL2 */
|
|
include <BOSL2/std.scad>
|
|
|
|
$fn = 100;
|
|
|
|
radius_back = 11;
|
|
radius_front = 11;
|
|
radius_hole = 2.5;
|
|
|
|
assert(radius_front >= radius_back);
|
|
|
|
cutout_width = 15;
|
|
cutout_depth = 6.5;
|
|
|
|
wall_distance = 16;
|
|
|
|
additional_straight = 2;
|
|
|
|
difference() {
|
|
group() {
|
|
cyl(r = radius_back, h = (wall_distance - additional_straight), chamfer2 = (radius_back - radius_front), anchor = BOTTOM);
|
|
|
|
up(wall_distance - additional_straight)
|
|
cyl(r = radius_front, h = (cutout_depth + additional_straight), anchor = BOTTOM);
|
|
}
|
|
group() {
|
|
/* Hole */
|
|
cyl(r = radius_hole, h = (wall_distance + cutout_depth), anchor = BOTTOM);
|
|
|
|
/* Cutout */
|
|
up(wall_distance)
|
|
cube([2*radius_front, cutout_width, cutout_depth], anchor = BOTTOM);
|
|
}
|
|
}
|
|
|