-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNameKeyringV1.5.scad
75 lines (51 loc) · 2.17 KB
/
NameKeyringV1.5.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
/* [Text & Font] */
// for your keyring
Font_name = "Chewy"; // [ Anton, Chewy, Forte, Gloria Hallelujah, Lobster, Luckiest Guy, Open Sans Extrabold, Oswald, Pacifico, Press Start 2P, Racing Sans One, Sigmar One, Snap ITC]
// for your keyring
Text = "Emma";
// of the preview
Rotation = 50; // [0:5:360]
/* [Spacing and Height] */
letter_1_height = 6; // [-20:1:20]
letter_1_space = 10; // [-20:1:20]
letter_2_height = 5; // [-20:1:20]
letter_2_space = 10; // [-20:1:20]
letter_3_height = 4; // [-20:1:20]
letter_3_space = 10; // [-20:1:20]
letter_4_height = 6; // [-20:1:20]
letter_4_space = 10; // [-20:1:20]
letter_5_height = 4; // [-20:1:20]
letter_5_space = 10; // [-20:1:20]
letter_6_height = 5; // [-20:1:20]
letter_6_space = 10; // [-20:1:20]
/* [ Twist ] */
// angle in degrees
twist = -5; // [-10:0.5:10]
// of twist rotation
center = 20; // [0:1:70]
/* [ Loop Settings ] */
// adjument
Loop_x_position = 10; // [-150:1:50]
// adjument
Loop_y_position = 0; // [-20:1:20]
// to use (default : u)
Loop_character = "";
// to use (default : Chewy)
Loop_font = "Chewy"; // [ Anton, Chewy, Forte, Gloria Hallelujah, Lobster, Luckiest Guy, Open Sans Extrabold, Oswald, Pacifico, Press Start 2P, Racing Sans One, Sigmar One, Snap ITC]
/* [Hidden */
// between letters adjust the overlap (e.g. 5 letters = 5 comma seperated numbers [5,5,4.8,4.2,4])
spacing = [0,letter_1_space,letter_2_space,letter_3_space,letter_4_space,letter_5_space,letter_6_space];
// of each letter (e.g. 5 letters = 5 comma seperated numbers [4,3,3.5,3,4])
height = [letter_1_height,letter_2_height,letter_3_height,letter_4_height,letter_5_height,letter_6_height];
rotate([0,0,Rotation]) {
linear_extrude(height = 3, $fn = 100) {
translate ([-center-Loop_x_position,Loop_y_position,0]) rotate([0,0,-90])
text(size = 20, text = Loop_character, font = Loop_font, halign = "center", valign= "center", $fn = 100);
}
for (i = [0 : len(Text) -1]) {
linear_extrude(height = height[i], twist = twist, $fn = 100) {
translate ([(spacing[i]*i)-center,0,0])
text(size = 25, text = Text[i], font = Font_name, halign = "center", valign= "center", $fn = 100);
}
}
}