-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtslotnut.scad
48 lines (39 loc) · 1.01 KB
/
tslotnut.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
use <MCAD/fasteners/nuts_and_bolts.scad>
include <MCAD/units/metric.scad>
$fs = 0.4;
$fa = 1;
module trapezoid (top, bottom, h)
{
polygon ([
[-bottom / 2, 0],
[-top / 2, h],
[top / 2, h],
[bottom / 2, 0]
]);
}
module tslotnut ()
{
flat_height = 1;
length = 15;
inner_width = 5;
outer_width = 11;
rounding_r = 0.5;
difference () {
rotate (90, X)
linear_extrude (height = length, center = true)
offset (r = rounding_r)
offset (r = -rounding_r)
union () {
translate ([0, flat_height - epsilon])
trapezoid (top = inner_width, bottom = outer_width,
h = (outer_width - inner_width) / 2);
translate ([0, flat_height / 2])
square ([outer_width, flat_height], center = true);
}
rotate (90, Z)
translate ([0, 0, -epsilon])
scale ([1, 1, 10])
mcad_nut_hole (size = 5, clearance = 0.05);
}
}
tslotnut ();