Senkung/countersunk_hole.scad
2024-03-13 21:39:42 +01:00

14 lines
432 B
OpenSCAD

// M3
body_diameter=3.2; // screw body
head_diameter=6.4; // screw head max
depth=1; // head-rim clearance
detail=100;
module countersunk_hole(hole_depth) {
rotate([0, 180, 0]) {
cylinder(h=depth+0.001, d1=head_diameter, d2=body_diameter, $fn=detail);
cylinder(h=hole_depth, d=body_diameter+0.001, $fn=detail);
translate([0, 0, -(depth)])
cylinder(h=depth, d=head_diameter, $fn=detail);
}
}