Change some details
This commit is contained in:
parent
4f9173bfa7
commit
c6f97a6599
3 changed files with 13 additions and 12 deletions
|
@ -2,11 +2,4 @@
|
||||||
|
|
||||||
Senkung für Senkkopfschrauben als Modul
|
Senkung für Senkkopfschrauben als Modul
|
||||||
|
|
||||||
usage:
|
for usage see example.scad
|
||||||
|
|
||||||
use <countersunk_hole.scad>
|
|
||||||
|
|
||||||
difference(){
|
|
||||||
cube([8,8,3.4]);
|
|
||||||
translate([4, 4, 2.5]) countersunk_hole(2.5);
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/ M3
|
// M3
|
||||||
body_diameter=3.2; // screw body
|
body_diameter=3.2; // screw body
|
||||||
head_diameter=6.4; // screw head max
|
head_diameter=6.4; // screw head max
|
||||||
depth=1; // head-rim clearance
|
depth=1; // head-rim clearance
|
||||||
detail=50;
|
detail=100;
|
||||||
|
|
||||||
module countersunk_hole(hole_depth) {
|
module countersunk_hole(hole_depth) {
|
||||||
rotate([0, 180, 0]) {
|
rotate([0, 180, 0]) {
|
||||||
cylinder(h=depth, d1=head_diameter, d2=body_diameter, $fn=detail);
|
cylinder(h=depth+0.001, d1=head_diameter, d2=body_diameter, $fn=detail);
|
||||||
cylinder(h=hole_depth, d=body_diameter, $fn=detail);
|
cylinder(h=hole_depth, d=body_diameter+0.001, $fn=detail);
|
||||||
translate([0, 0, -(depth)])
|
translate([0, 0, -(depth)])
|
||||||
cylinder(h=depth, d=head_diameter, $fn=detail);
|
cylinder(h=depth, d=head_diameter, $fn=detail);
|
||||||
}
|
}
|
8
example.scad
Normal file
8
example.scad
Normal 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);
|
||||||
|
}
|
Loading…
Reference in a new issue