Change some details

This commit is contained in:
Arndt Heuvel 2024-03-13 21:39:42 +01:00
parent 4f9173bfa7
commit c6f97a6599
3 changed files with 13 additions and 12 deletions

View file

@ -2,11 +2,4 @@
Senkung für Senkkopfschrauben als Modul
usage:
use <countersunk_hole.scad>
difference(){
cube([8,8,3.4]);
translate([4, 4, 2.5]) countersunk_hole(2.5);
}
for usage see example.scad

View file

@ -1,13 +1,13 @@
/ M3
// M3
body_diameter=3.2; // screw body
head_diameter=6.4; // screw head max
depth=1; // head-rim clearance
detail=50;
detail=100;
module countersunk_hole(hole_depth) {
rotate([0, 180, 0]) {
cylinder(h=depth, d1=head_diameter, d2=body_diameter, $fn=detail);
cylinder(h=hole_depth, d=body_diameter, $fn=detail);
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);
}

8
example.scad Normal file
View file

@ -0,0 +1,8 @@
// example usage off countersunk_hole:
use <countersunk_hole.scad>
difference(){
cube([8,8,3.3]);
translate([4, 4, 2.5]) countersunk_hole(2.6);
}