forked from sporkus/PseudoMakeMeKeyCapProfiles
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexport_des_thumbs.scad
40 lines (31 loc) · 893 Bytes
/
export_des_thumbs.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
use <MX_DES_Thumb-minY-minZ.scad>
// use <Choc_DES_minY.scad>
spacing = 19.05;
spru_radius = 0.8;
mirror = true;
start = 24; end = 26; // MX
// start = 47; end = 49; // Choc
union() {
for (i = [start : end]) {
des_spru(i);
if (mirror == true) {
mirror([1, 0, 0]) des_spru(i);
}
}
}
module des_spru(keyID) {
translate([19 * (keyID - start) + spacing/2, 0, 0]) des_default(keyID);
if (keyID != start || mirror == true) {
translate([(keyID - start) * spacing - 3, 5, -0.8 * spru_radius])
rotate([0, 90, 0])
cylinder(h = 6, r = spru_radius, $fn=20);
}
}
module des_default(keyID, home=false) {
keycap(
keyID = keyID, //change profile refer to KeyParameters Struct
Stem = true, //tusn on shell and stems
crossSection = false,
homeDot = home, //turn on homedots
);
}