|
@@ -0,0 +1,144 @@
|
|
1
|
+
|
|
2
|
+// ----------------------------------------------------
|
|
3
|
+
|
|
4
|
+/*
|
|
5
|
+sign_width = 86;
|
|
6
|
+sign_length = 20;
|
|
7
|
+text_str = "xythobuz.de";
|
|
8
|
+text_font = "Liberation Sans:style=Bold";
|
|
9
|
+text_size_off = 4;
|
|
10
|
+text_double = false;
|
|
11
|
+sign_base_height = 3;
|
|
12
|
+sign_border_height = 2;
|
|
13
|
+sign_border_width = 3;
|
|
14
|
+fillet = 0.5;
|
|
15
|
+*/
|
|
16
|
+
|
|
17
|
+// ----------------------------------------------------
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+sign_width = 105;
|
|
21
|
+sign_length = 22;
|
|
22
|
+text_str = "xythobuz.de";
|
|
23
|
+text_str2 = "Thomas Buck";
|
|
24
|
+text_font = "Liberation Sans:style=Bold";
|
|
25
|
+text_size_off = 5;
|
|
26
|
+text_double = true;
|
|
27
|
+text_double_off = 11;
|
|
28
|
+sign_base_height = 3;
|
|
29
|
+sign_border_height = 4;
|
|
30
|
+sign_border_width = 3;
|
|
31
|
+fillet = 1.0;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+// ----------------------------------------------------
|
|
35
|
+
|
|
36
|
+/*
|
|
37
|
+sign_width = 65;
|
|
38
|
+sign_length = 20;
|
|
39
|
+text_str = "Toolbox";
|
|
40
|
+text_font = "Liberation Sans:style=Bold";
|
|
41
|
+text_size_off = 3;
|
|
42
|
+text_double = false;
|
|
43
|
+sign_base_height = 3;
|
|
44
|
+sign_border_height = 2;
|
|
45
|
+sign_border_width = 3;
|
|
46
|
+fillet = 0.5;
|
|
47
|
+*/
|
|
48
|
+
|
|
49
|
+// ----------------------------------------------------
|
|
50
|
+
|
|
51
|
+/*
|
|
52
|
+sign_width = 80;
|
|
53
|
+sign_length = 20;
|
|
54
|
+text_str = "Toolbox";
|
|
55
|
+text_str2 = "Bodensee";
|
|
56
|
+text_font = "Liberation Sans:style=Bold";
|
|
57
|
+text_size_off = 3;
|
|
58
|
+text_double = true;
|
|
59
|
+text_double_off = 13;
|
|
60
|
+sign_base_height = 3;
|
|
61
|
+sign_border_height = 2;
|
|
62
|
+sign_border_width = 3;
|
|
63
|
+fillet = 0.5;
|
|
64
|
+*/
|
|
65
|
+
|
|
66
|
+// ----------------------------------------------------
|
|
67
|
+
|
|
68
|
+draw_bottom = true;
|
|
69
|
+draw_walls = true;
|
|
70
|
+draw_text = false;
|
|
71
|
+
|
|
72
|
+color_base = "grey";
|
|
73
|
+color_walls = "grey";
|
|
74
|
+color_text = "white";
|
|
75
|
+
|
|
76
|
+// ----------------------------------------------------
|
|
77
|
+
|
|
78
|
+text_size = sign_length - (2 * sign_border_width) - text_size_off;
|
|
79
|
+
|
|
80
|
+include <rounded.scad>
|
|
81
|
+
|
|
82
|
+// ----------------------------------------------------
|
|
83
|
+
|
|
84
|
+if (draw_bottom) {
|
|
85
|
+ if (text_double) {
|
|
86
|
+ // base
|
|
87
|
+ color(color_base)
|
|
88
|
+ rounded_cube(sign_width, sign_length + text_double_off, sign_base_height, fillet, fillet, fillet, false, true, true);
|
|
89
|
+ } else {
|
|
90
|
+ // base
|
|
91
|
+ color(color_base)
|
|
92
|
+ rounded_cube(sign_width, sign_length, sign_base_height, fillet, fillet, fillet, false, true, true);
|
|
93
|
+ }
|
|
94
|
+}
|
|
95
|
+
|
|
96
|
+if (draw_walls) {
|
|
97
|
+ // top walls
|
|
98
|
+ color(color_walls)
|
|
99
|
+ translate([0, 0, sign_base_height])
|
|
100
|
+ difference() {
|
|
101
|
+ union() {
|
|
102
|
+ rounded_cube(sign_width, sign_border_width, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
103
|
+
|
|
104
|
+ if (text_double) {
|
|
105
|
+ rounded_cube(sign_border_width, sign_length + text_double_off, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
106
|
+
|
|
107
|
+ translate([sign_width - sign_border_width, 0, 0])
|
|
108
|
+ rounded_cube(sign_border_width, sign_length + text_double_off, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
109
|
+
|
|
110
|
+ translate([0, sign_length + text_double_off - sign_border_width, 0])
|
|
111
|
+ rounded_cube(sign_width, sign_border_width, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
112
|
+ } else {
|
|
113
|
+ rounded_cube(sign_border_width, sign_length, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
114
|
+
|
|
115
|
+ translate([sign_width - sign_border_width, 0, 0])
|
|
116
|
+ rounded_cube(sign_border_width, sign_length, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
117
|
+
|
|
118
|
+ translate([0, sign_length - sign_border_width, 0])
|
|
119
|
+ rounded_cube(sign_width, sign_border_width, sign_border_height, fillet, fillet, fillet, false, true, false);
|
|
120
|
+ }
|
|
121
|
+ }
|
|
122
|
+ }
|
|
123
|
+}
|
|
124
|
+
|
|
125
|
+if (draw_text) {
|
|
126
|
+ if (text_double) {
|
|
127
|
+ // text
|
|
128
|
+ color(color_text)
|
|
129
|
+ translate([sign_width / 2, sign_length / 2 + text_double_off, sign_base_height])
|
|
130
|
+ linear_extrude(height = sign_border_height)
|
|
131
|
+ text(text = text_str, font = text_font, size = text_size, valign = "center", halign = "center");
|
|
132
|
+
|
|
133
|
+ color(color_text)
|
|
134
|
+ translate([sign_width / 2, sign_length / 2, sign_base_height])
|
|
135
|
+ linear_extrude(height = sign_border_height)
|
|
136
|
+ text(text = text_str2, font = text_font, size = text_size, valign = "center", halign = "center");
|
|
137
|
+ } else {
|
|
138
|
+ // text
|
|
139
|
+ color(color_text)
|
|
140
|
+ translate([sign_width / 2, sign_length / 2, sign_base_height])
|
|
141
|
+ linear_extrude(height = sign_border_height)
|
|
142
|
+ text(text = text_str, font = text_font, size = text_size, valign = "center", halign = "center");
|
|
143
|
+ }
|
|
144
|
+}
|