-
Notifications
You must be signed in to change notification settings - Fork 0
/
racquet_grip.scad
140 lines (117 loc) · 2.59 KB
/
racquet_grip.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Racquet with strings no grip no buttcap 288g
// Segments in a circle, increase for the final render
$fn = 40;
// crossection
w = 32.3; // width
h = 28.3; // height
d = 31.8; // distance between the diagonal bevels
a = 45; // diagonal bevels angle
// full grip length
gl = 200;
// throat
tl = 30; // length of the transition between grip and throat
th = 22; // height of the throat
tw = 31.5; // width of the throat
r1 = 5.5; // x-rounding (where the short side connects to the long)
r2 = 11; // y-rounding (at the middle of the short 'rounded' side)
// 'collar' above the throat
cl = 2;
// pins/holes
ro = 2;
ri = 1.7;
ox = 1;
oz = 2;
// full length of the mold, grip length + collar
ml = gl + cl;
// mold outer dimensions
mw = w + 12;
mh = h + 6;
module throat_rounding( l )
{
scale( [ 1, r2/r1, 1 ] ) { cylinder( l, r = r1 ); }
}
module throat( l )
{
hull( )
{
translate( [ (tw/2 - r1), th/2 - r2 , 0 ] ) { throat_rounding( l ); }
translate( [ (tw/2 - r1), -(th/2 - r2), 0 ] ) { throat_rounding( l ); }
translate( [ -(tw/2 - r1), th/2 - r2 , 0 ] ) { throat_rounding( l ); }
translate( [ -(tw/2 - r1), -(th/2 - r2), 0 ] ) { throat_rounding( l ); }
}
}
module grip_body( l )
{
intersection( )
{
cube( [ w, h, l ], true );
rotate( [ 0, 0, a ] )
{
cube( [ d, d*2, l ], true );
}
rotate( [ 0, 0, -a ] )
{
cube( [ d, d*2, l ], true );
}
}
}
module grip_shape( )
{
translate( [ 0, 0, gl ] )
{
throat( cl );
}
hull( )
{
translate( [ 0, 0, gl-1e-2 ] )
{
throat( 1e-2 );
}
translate( [ 0, 0, gl-tl+1e-2/2 ] )
{
grip_body( 1e-2 );
}
}
translate( [ 0, 0, (gl-tl)/2 ] )
{
grip_body( gl-tl );
}
}
module full_mold( )
{
difference( )
{
translate( [ 0, 0, ml / 2 ] )
{
cube( [ mw, mh, ml ], center = true );
}
grip_shape( );
}
}
module half_mold( )
{
difference( )
{
full_mold( );
translate( [ 0, mh / 2, ml / 2 ] )
{
cube( [ mw, mh, ml ], center = true );
}
}
}
difference( )
{
union( )
{
half_mold( );
translate( [ mw/2-ro-ox, 0, ro+oz ] ) { sphere( ri ); }
translate( [ mw/2-ro-ox, 0, ml/2 ] ) { sphere( ri ); }
translate( [ mw/2-ro-ox, 0, ml-ro-oz ] ) { sphere( ri ); }
}
union( )
{
translate( [ -(mw/2-ro-ox), 0, ro+oz ] ) { sphere( ro ); }
translate( [ -(mw/2-ro-ox), 0, ml/2 ] ) { sphere( ro ); }
translate( [ -(mw/2-ro-ox), 0, ml-ro-oz ] ) { sphere( ro ); }
}
}