Skip to content

Commit c61002d

Browse files
committed
Fix countersinking countersunk bolts
When we countersink socket head bolts, we only need to apply additional head clearance when we exceed 1 heads worth of countersink (`countersink > 1`). With countersunk screws, since the head is part of the bolt length, this applies to any `countersink > 0`.
1 parent d4479f3 commit c61002d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

catchnhole.scad

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ module bolt (
122122
b,
123123
kind,
124124
head_diameter_clearance,
125-
head_top_clearance = max((countersink - 1) * head_length, 0) + head_top_clearance,
125+
head_top_clearance = max(
126+
(countersink - (kind == "countersunk" ? 0 : 1)) * head_length,
127+
0
128+
) + head_top_clearance
126129
);
127130
}
128131
}

examples/simple.scad

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ difference () {
2323

2424

2525
// An M5 nutcatch with a countersunk screw:
26-
translate([10, 0, 0]) {
26+
translate([10, b * 1/4, 0]) {
2727
nutcatch_parallel("M5");
28-
bolt("M5", 25, kind = "countersunk");
28+
bolt("M5", h, kind = "countersunk");
29+
}
30+
31+
// And just a countersunk M5 with a countersunk screw:
32+
translate([10, -b / 4, 0]) {
33+
bolt("M5", h, kind = "countersunk", countersink = 1);
2934
}
3035

3136
// An M8 nutcatch with a socket head countersunk screw:

0 commit comments

Comments
 (0)