29 lines
No EOL
450 B
OpenSCAD
29 lines
No EOL
450 B
OpenSCAD
include <BOSL2/std.scad>
|
|
|
|
out_d = 50;
|
|
ch_d = 8;
|
|
t = 2;
|
|
|
|
ang = 160;
|
|
|
|
$fn = 180;
|
|
|
|
module cut_arc(side) {
|
|
|
|
path = arc(points=[
|
|
[-out_d/2,0],
|
|
[0,out_d/2 * tan(ang/4)],
|
|
[out_d/2,0]
|
|
]);
|
|
|
|
path_extrude2d(path,caps=false) {
|
|
difference() {
|
|
// circle(d=ch_d + t);
|
|
rect([ch_d + t,ch_d + t]);
|
|
circle(d=ch_d);
|
|
rect([20,20], anchor=side);
|
|
}
|
|
}
|
|
}
|
|
|
|
cut_arc(RIGHT); |