-
Notifications
You must be signed in to change notification settings - Fork 4
/
extractor.scad
69 lines (58 loc) · 1.63 KB
/
extractor.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Simple clamp for unclipping a connector
// Copyright (C) 2020 Jeremy Bennett <[email protected]>
// Contributor Jeremy Bennett <[email protected]>
// SPDX-License-Identifier: CC-BY-SA-4.0
// We have a connector which needs two prongs 17 mm apart to release.
EPS = 0.01;
CAP_H = 10.0;
BLOCK_H = 40.0;
COLLAR_H = 10.0;
BLOCK_R = 14.0;
HOLE_H = BLOCK_H + 1.0;
HOLE_R = 3.04;
FLAT_H = 1.25;
ROUND_H = 2.0 - FLAT_H;
HOLE_W = 4.0;
SPIKE_GAP = 17.0;
MINK_PAD_R = 0.15;
module spike_hole (a) {
rotate (a = [0, 0, a])
translate (v = [0, ROUND_H - HOLE_R + FLAT_H + MINK_PAD_R, 0])
minkowski () {
union () {
difference () {
cylinder (h = HOLE_H, r = HOLE_R, center = true,
$fn = 24);
translate (v = [0, -5 + HOLE_R - ROUND_H, 0])
cube (size = [10, 10, HOLE_H + EPS],
center = true);
}
translate (v = [0, HOLE_R - ROUND_H - FLAT_H / 2 + EPS, 0])
cube (size = [4.0, FLAT_H, HOLE_H], center = true);
}
cylinder (h = EPS, r = MINK_PAD_R, $fn = 24);
}
}
module spike_holes () {
translate (v = [0, -SPIKE_GAP / 2.0])
spike_hole (-30);
translate (v = [0, SPIKE_GAP / 2.0])
rotate (a = [0, 0, 180])
spike_hole (30);
}
module block () {
translate (v = [0, 0, EPS - BLOCK_H / 2])
cylinder (h = CAP_H, r = BLOCK_R, $fn = 96, center = true);
difference () {
cylinder (h = BLOCK_H, r = BLOCK_R, $fn = 96, center = true);
spike_holes ();
}
}
module collar () {
difference () {
cylinder (h = COLLAR_H, r = BLOCK_R, $fn = 96, center = true);
spike_holes ();
}
}
//block ();
collar ();