|
0
|
1 // House number: glyphs of a text, printed face down, screwed to a wall
|
|
2
|
2 // with distance washers or held by magnets in the washers. Glyph outlines and hole positions come from
|
|
0
|
3 // glyphs.scad, written by make_glyphs.py.
|
|
|
4
|
|
|
5 /* [part selection] */
|
|
2
|
6 // part to show or export
|
|
|
7 part = "all"; // [all, body, decal:"decal, two-colour mode", washer, template:"template, export as SVG for make_template.py"]
|
|
0
|
8
|
|
|
9 /* [layout] */
|
|
|
10 // whole text in one print, or one glyph per print
|
|
|
11 layout = "glyph"; // [text, glyph]
|
|
|
12 // glyph to print in the glyph layout, counted from 0, spaces not counted
|
|
|
13 glyph_index = 0; // [0:1:30]
|
|
|
14 // height of the tallest glyph, 0 for the largest that fits
|
|
|
15 size = 0; // [0:.1:500]
|
|
|
16 // rotation on the bed in degrees, -1 for the best angle
|
|
|
17 angle = 0; // [-1:1:90]
|
|
|
18 // bed size
|
|
|
19 bed_size = 300; // [100:1:500]
|
|
|
20 // unusable margin along the bed edges
|
|
|
21 bed_margin = 10; // [0:.5:50]
|
|
|
22
|
|
|
23 /* [glyph] */
|
|
|
24 // glyph thickness in layers, decal layers included
|
|
|
25 glyph_layers = 6; // [3:1:60]
|
|
|
26 // backing behind the glyph, covering its outline and connecting separate parts
|
|
|
27 backing = false;
|
|
|
28 // backing thickness in layers
|
|
|
29 backing_layers = 4; // [1:1:20]
|
|
|
30
|
|
2
|
31 /* [attachment] */
|
|
|
32 // screws through the glyph, or magnets in the washers
|
|
|
33 attachment = "screw"; // [screw, magnet]
|
|
|
34 // minimum material around the screw head or magnet, in line widths, for the fit check
|
|
|
35 fit_wall_lines = 2; // [0:1:10]
|
|
|
36
|
|
0
|
37 /* [screws] */
|
|
|
38 // screw diameter
|
|
|
39 screw_d = 4; // [2:.5:8]
|
|
|
40 // countersunk holes, 90 degrees
|
|
|
41 countersink = true;
|
|
|
42 // screw head diameter
|
|
|
43 head_d = 8; // [3:.5:16]
|
|
2
|
44
|
|
|
45 /* [magnets] */
|
|
|
46 // magnet pocket diameter, used as given for the press fit, without clearance
|
|
|
47 magnet_d = 10; // [1:.05:30]
|
|
|
48 // magnet pocket depth, used as given; flush with the washer end when open
|
|
|
49 magnet_h = 3; // [.5:.05:20]
|
|
|
50 // close the pockets with 2 layers, the magnets are inserted during a print pause
|
|
|
51 seal_magnets = false;
|
|
0
|
52
|
|
|
53 /* [two-colour] */
|
|
|
54 // split into body and decal, for a filament change on a single-colour printer
|
|
|
55 two_colour = false;
|
|
3
|
56 // width of the decal band along the outline, on the face; it narrows by one layer height per layer
|
|
0
|
57 band_width = 4; // [.5:.1:20]
|
|
3
|
58 // decal thickness in layers, at most the glyph thickness less 2 layers
|
|
|
59 decal_layers = 2; // [1:1:10]
|
|
0
|
60
|
|
|
61 /* [washer] */
|
|
|
62 // print the washers as part of the body, on the back of the glyph
|
|
|
63 washers_on_body = false;
|
|
2
|
64 // washer wall around the screw hole or magnet, in line widths
|
|
0
|
65 washer_wall_lines = 8; // [1:1:40]
|
|
2
|
66 // washer height, rounded to whole layers; raised to the countersink part or the magnet pocket inside the washer plus 4 layers
|
|
0
|
67 washer_height = 10; // [0:.5:30]
|
|
|
68
|
|
|
69 /* [print settings] */
|
|
|
70 line_width = .4; // [0:.01:1]
|
|
|
71 layer_height = .2; // [0:.01:.5]
|
|
|
72 clearance = .1; // [0:.01:.5]
|
|
|
73
|
|
|
74 module dummy() {}
|
|
|
75
|
|
|
76 include <glyphs.scad>
|
|
|
77
|
|
|
78 epsilon = .001;
|
|
|
79 $fn = $preview ? 60 : 180;
|
|
|
80
|
|
|
81 lw = line_width;
|
|
|
82 lh = layer_height;
|
|
|
83
|
|
|
84 // thicknesses
|
|
|
85 glyph_t = glyph_layers * lh;
|
|
|
86 backing_t = backing ? backing_layers * lh : 0;
|
|
|
87 total_t = glyph_t + backing_t;
|
|
3
|
88 // decal layers, leaving at least 2 layers of body
|
|
|
89 decal_n = max(1, min(decal_layers, glyph_layers - 2));
|
|
|
90 decal_t = decal_n * lh;
|
|
|
91 // band width of the top decal layer
|
|
|
92 band_top = band_width - (decal_n - 1) * lh;
|
|
0
|
93 frame_t = lh; // 1 layer
|
|
|
94
|
|
2
|
95 magnet = attachment == "magnet";
|
|
|
96
|
|
0
|
97 // screw holes: 90 degree countersink, depth is half the diameter difference
|
|
|
98 hole_d = screw_d + 2 * clearance;
|
|
|
99 cs_d = head_d + 2 * clearance;
|
|
2
|
100 cs_depth = !magnet && countersink ? (cs_d - hole_d) / 2 : 0;
|
|
0
|
101 // part of the countersink that reaches beyond the glyph into the washer
|
|
|
102 cs_washer = max(0, cs_depth - total_t);
|
|
|
103
|
|
2
|
104 // magnet pockets at the wall end of the washers. A sealed pocket is deepened
|
|
|
105 // to whole layers, so the print pause falls on its top
|
|
|
106 cover_t = seal_magnets ? 2 * lh : 0; // 2 layers over the magnet
|
|
|
107 pocket_h = seal_magnets ? _layers_up(magnet_h) : magnet_h;
|
|
|
108
|
|
0
|
109 // washer
|
|
2
|
110 bore_d = magnet ? magnet_d : hole_d;
|
|
|
111 washer_od = bore_d + 2 * washer_wall_lines * lw;
|
|
|
112 // 4 layers below the countersink or the pocket
|
|
|
113 washer_min = _layers_up((magnet ? pocket_h + cover_t : cs_washer) + 4 * lh);
|
|
|
114 washer_set = round(washer_height / lh) * lh;
|
|
|
115 washer_h = max(washer_set, washer_min);
|
|
|
116 // print height of the top of a sealed pocket, on the body or on the bed
|
|
|
117 pause_z = (washers_on_body ? total_t : 0) + washer_h - cover_t;
|
|
|
118 // magnet pocket for file names: diameter and depth in 1/100 mm, s if sealed
|
|
|
119 magnet_str = str("mg", round(100 * magnet_d), "x", round(100 * magnet_h), seal_magnets ? "s" : "");
|
|
0
|
120
|
|
|
121 // layout and size
|
|
|
122 n_glyphs = len(g_glyphs);
|
|
|
123 sel = layout == "text" ? [for (i = [0 : n_glyphs - 1]) i] : [glyph_index];
|
|
|
124 usable = bed_size - 2 * bed_margin - 4 * lw; // frame and gap, 1 line width each
|
|
|
125 best_angle = layout == "text" ? g_max_text[1] : g_max_glyph[1];
|
|
|
126 print_angle = angle < 0 ? best_angle : angle;
|
|
|
127 // glyphs are drawn unrotated in the assembly view
|
|
|
128 ang = part == "all" ? 0 : print_angle;
|
|
|
129 fit_extent = layout == "text"
|
|
|
130 ? _extent([for (g = g_glyphs) for (p = g[4]) [p.x + g[2], p.y]], print_angle)
|
|
|
131 : max([for (g = g_glyphs) _extent(g[4], print_angle)]);
|
|
|
132 max_size = usable / fit_extent * g_size;
|
|
|
133 final_size = size > 0 ? size : max_size;
|
|
|
134 k = final_size / g_size; // scale from the data file to the print
|
|
|
135
|
|
|
136 // placement: centre the bounding box of the shown glyphs on the origin
|
|
|
137 raw_pts = [for (i = sel) for (p = g_glyphs[i][4]) _tf0([p.x + _off(i), p.y])];
|
|
|
138 bb = [min([for (p = raw_pts) p.x]), min([for (p = raw_pts) p.y]),
|
|
|
139 max([for (p = raw_pts) p.x]), max([for (p = raw_pts) p.y])];
|
|
|
140 centre = [(bb[0] + bb[2]) / 2, (bb[1] + bb[3]) / 2];
|
|
|
141
|
|
|
142 // holes of the shown glyphs: [position, largest circle radius at the print size]
|
|
|
143 holes = [for (i = sel) for (h = g_glyphs[i][5]) [_tf([h.x + _off(i), h.y]), h[2] * k]];
|
|
2
|
144 fit_r_req = (magnet ? magnet_d : head_d) / 2 + fit_wall_lines * lw;
|
|
0
|
145
|
|
|
146 assert(glyph_index < n_glyphs, str("glyph_index must be below ", n_glyphs));
|
|
|
147 assert(part != "decal" || two_colour, "the decal needs two_colour");
|
|
|
148
|
|
|
149 echo(str("size: ", final_size, " mm, largest that fits ", max_size, " mm at ",
|
|
|
150 print_angle, " degrees"));
|
|
|
151 echo(str("glyph thickness: ", glyph_t, " mm, with backing ", total_t, " mm"));
|
|
2
|
152 if (magnet)
|
|
|
153 echo(str("magnet pocket: ", magnet_d, " mm, depth ", pocket_h, " mm",
|
|
|
154 seal_magnets ? str(", sealed by ", cover_t, " mm") : ", open"));
|
|
|
155 else
|
|
|
156 echo(str("hole: ", hole_d, " mm, countersink ", cs_d, " mm, depth ", cs_depth,
|
|
|
157 " mm, of which in the washer ", cs_washer, " mm"));
|
|
0
|
158 echo(str("washer: ", washer_od, " mm outside, ", washer_h, " mm high, wall ",
|
|
|
159 washer_wall_lines, " line widths"));
|
|
|
160 if (size > max_size + .01)
|
|
|
161 echo(str("WARNING: size ", size, " mm does not fit the bed, largest is ", max_size, " mm"));
|
|
2
|
162 if (magnet && seal_magnets)
|
|
|
163 echo(str("pause: insert the magnets after the layer ending at ", pause_z, " mm, layer ",
|
|
|
164 round(pause_z / lh), washers_on_body ? " of the body" : " of the washer"));
|
|
|
165 if (magnet && seal_magnets && pocket_h > magnet_h + epsilon)
|
|
|
166 echo(str("WARNING: pocket depth raised to ", pocket_h, " mm, whole layers"));
|
|
3
|
167 if (two_colour) {
|
|
|
168 echo(str("decal: ", decal_n, " layers, ", decal_t, " mm, band ", band_width,
|
|
|
169 " mm on the face, ", band_top, " mm on the top layer"));
|
|
|
170 if (decal_n < decal_layers)
|
|
|
171 echo(str("WARNING: decal reduced to ", decal_n, " layers, glyph thickness less 2 layers"));
|
|
|
172 if (band_top < lw)
|
|
|
173 echo(str("WARNING: band on the top decal layer is ", band_top,
|
|
|
174 " mm, less than a line width"));
|
|
|
175 }
|
|
2
|
176 if (washer_set < washer_min)
|
|
0
|
177 echo(str("WARNING: washer height raised to ", washer_min, " mm"));
|
|
2
|
178 for (h = holes) if (h[1] < fit_r_req)
|
|
|
179 echo(str("WARNING: hole at ", h[0], ": largest circle radius ", h[1], " mm, ",
|
|
|
180 magnet ? "magnet" : "head", " plus wall needs ", fit_r_req, " mm"));
|
|
0
|
181 if (washers_on_body) for (h = holes) if (h[1] < washer_od / 2)
|
|
|
182 echo(str("WARNING: washer at ", h[0], " is cut back to the glyph outline"));
|
|
|
183
|
|
2
|
184 // Length rounded up to whole layers, ignoring rounding errors.
|
|
|
185 // x: length in mm.
|
|
|
186 function _layers_up(x) = ceil(x / lh - .01) * lh;
|
|
|
187
|
|
0
|
188 // Size of the bounding box of points rotated by a degrees, along its longer side.
|
|
|
189 // pts: list of 2D points. a: angle in degrees.
|
|
|
190 function _extent(pts, a) =
|
|
|
191 let (r = [for (p = pts) [p.x * cos(a) - p.y * sin(a), p.x * sin(a) + p.y * cos(a)]])
|
|
|
192 max(max([for (q = r) q.x]) - min([for (q = r) q.x]),
|
|
|
193 max([for (q = r) q.y]) - min([for (q = r) q.y]));
|
|
|
194
|
|
|
195 // x offset of glyph i: its place in the text in the text layout, else 0.
|
|
|
196 function _off(i) = layout == "text" ? g_glyphs[i][2] : 0;
|
|
|
197
|
|
|
198 // Point from the data file to the print, before centring: scaled, rotated,
|
|
|
199 // mirrored for printing face down.
|
|
|
200 function _tf0(p) =
|
|
|
201 let (q = k * p, r = [q.x * cos(ang) - q.y * sin(ang), q.x * sin(ang) + q.y * cos(ang)])
|
|
|
202 [-r.x, r.y];
|
|
|
203
|
|
|
204 // Point from the data file to its place in the print.
|
|
|
205 function _tf(p) = _tf0(p) - centre;
|
|
|
206
|
|
|
207 // Apply the placement of _tf() to 2D children given in data file coordinates.
|
|
|
208 module _place() {
|
|
|
209 translate(-centre) mirror([1, 0]) rotate(ang) scale(k) children();
|
|
|
210 }
|
|
|
211
|
|
|
212 // Outline of glyph i in data file coordinates, at its place in the layout.
|
|
|
213 module _glyph2d(i) {
|
|
|
214 translate([_off(i), 0]) import(g_glyphs[i][1]);
|
|
|
215 }
|
|
|
216
|
|
|
217 // Backing outline of glyph i in data file coordinates: the outline itself,
|
|
|
218 // grown and shrunk to connect separate parts, or the convex hull.
|
|
|
219 module _backing2d(i) {
|
|
|
220 r = g_glyphs[i][7];
|
|
|
221 if (r > 0) offset(r = -r) offset(r = r) _glyph2d(i);
|
|
|
222 else if (r < 0) hull() _glyph2d(i);
|
|
|
223 else _glyph2d(i);
|
|
|
224 }
|
|
|
225
|
|
|
226 // Outline of all shown glyphs, placed for printing.
|
|
|
227 module _placed2d() {
|
|
|
228 for (i = sel) _place() _glyph2d(i);
|
|
|
229 }
|
|
|
230
|
|
3
|
231 // Decal band of one layer: the outline minus the outline shrunk by the band
|
|
|
232 // width. The band narrows by one layer height per layer, so its inner edge
|
|
|
233 // slopes away from the body and the nozzle can reach the body's lower layers.
|
|
|
234 // i: decal layer, 0 on the bed.
|
|
|
235 module _band2d(i) {
|
|
0
|
236 difference() {
|
|
|
237 _placed2d();
|
|
3
|
238 offset(r = -(band_width - i * lh)) _placed2d();
|
|
0
|
239 }
|
|
|
240 }
|
|
|
241
|
|
3
|
242 // Decal layers in print orientation, one slab per layer.
|
|
|
243 // e: downward extension of each slab, for subtracting from the body.
|
|
|
244 module _decal3d(e = 0) {
|
|
|
245 for (i = [0 : decal_n - 1])
|
|
|
246 translate([0, 0, i * lh - e]) linear_extrude(lh + e) _band2d(i);
|
|
|
247 }
|
|
|
248
|
|
0
|
249 // Screw holes and countersinks, opening towards the bed, through washers
|
|
2
|
250 // printed on the body. Nothing for magnets.
|
|
0
|
251 module _holes() {
|
|
2
|
252 if (!magnet) for (h = holes) translate(h[0]) {
|
|
0
|
253 translate([0, 0, -1])
|
|
|
254 cylinder(d = hole_d, h = total_t + (washers_on_body ? washer_h : 0) + 2);
|
|
|
255 if (countersink)
|
|
|
256 translate([0, 0, -epsilon])
|
|
|
257 cylinder(d1 = cs_d + 2 * epsilon, d2 = hole_d, h = cs_depth + epsilon);
|
|
|
258 }
|
|
|
259 }
|
|
|
260
|
|
2
|
261 // Magnet pocket below z = 0, the wall end of a washer: open, or closed by
|
|
|
262 // the cover layers.
|
|
|
263 module _pocket() {
|
|
|
264 translate([0, 0, -cover_t - pocket_h])
|
|
|
265 cylinder(d = magnet_d, h = pocket_h + (seal_magnets ? 0 : 1));
|
|
|
266 }
|
|
|
267
|
|
0
|
268 // Frame of one layer and one line width, one line width around the shown
|
|
|
269 // glyphs. Decal and body both contain it, so the slicer places them alike.
|
|
|
270 module _frame() {
|
|
|
271 linear_extrude(frame_t) difference() {
|
|
|
272 translate([bb[0] - centre.x - 2 * lw, bb[1] - centre.y - 2 * lw])
|
|
|
273 square([bb[2] - bb[0] + 4 * lw, bb[3] - bb[1] + 4 * lw]);
|
|
|
274 translate([bb[0] - centre.x - lw, bb[1] - centre.y - lw])
|
|
|
275 square([bb[2] - bb[0] + 2 * lw, bb[3] - bb[1] + 2 * lw]);
|
|
|
276 }
|
|
|
277 }
|
|
|
278
|
|
|
279 // Outline of the back of the shown glyphs, placed for printing: the backing
|
|
|
280 // if there is one, else the glyph outline.
|
|
|
281 module _back2d() {
|
|
|
282 if (backing) for (i = sel) _place() _backing2d(i);
|
|
|
283 else _placed2d();
|
|
|
284 }
|
|
|
285
|
|
|
286 // Glyph body in print orientation, face on the bed. In two-colour mode the
|
|
3
|
287 // decal is left out of the decal layers. Washers
|
|
0
|
288 // printed on the body stand on its back, cut back to the outline of the back
|
|
2
|
289 // so they do not overhang, with the magnet pockets at their top.
|
|
0
|
290 // frame: include the frame (two-colour mode only).
|
|
|
291 module body(frame = true) {
|
|
|
292 difference() {
|
|
|
293 union() {
|
|
|
294 linear_extrude(glyph_t) _placed2d();
|
|
|
295 if (backing)
|
|
|
296 translate([0, 0, glyph_t - epsilon]) linear_extrude(backing_t + epsilon)
|
|
|
297 _back2d();
|
|
|
298 if (washers_on_body)
|
|
|
299 translate([0, 0, total_t - epsilon]) intersection() {
|
|
|
300 for (h = holes) translate(h[0]) cylinder(d = washer_od, h = washer_h + epsilon);
|
|
|
301 linear_extrude(washer_h + epsilon) _back2d();
|
|
|
302 }
|
|
|
303 }
|
|
2
|
304 if (washers_on_body && magnet)
|
|
|
305 for (h = holes) translate([h[0].x, h[0].y, total_t + washer_h]) _pocket();
|
|
0
|
306 _holes();
|
|
3
|
307 if (two_colour) _decal3d(epsilon);
|
|
0
|
308 }
|
|
|
309 if (two_colour && frame) _frame();
|
|
|
310 }
|
|
|
311
|
|
|
312 // Decal in print orientation: the band along the outline, with the frame.
|
|
|
313 // frame: include the frame.
|
|
|
314 module decal(frame = true) {
|
|
|
315 difference() {
|
|
3
|
316 _decal3d();
|
|
0
|
317 _holes();
|
|
|
318 }
|
|
|
319 if (frame) _frame();
|
|
|
320 }
|
|
|
321
|
|
2
|
322 // Distance washer. For screws it prints with the glyph side up; with
|
|
|
323 // countersinks deeper than the glyph, the cone continues in its top. For
|
|
|
324 // magnets it prints with the wall side up, the pocket in its top.
|
|
0
|
325 module washer() {
|
|
|
326 difference() {
|
|
|
327 cylinder(d = washer_od, h = washer_h);
|
|
2
|
328 if (magnet) translate([0, 0, washer_h]) _pocket();
|
|
|
329 else translate([0, 0, -1]) cylinder(d = hole_d, h = washer_h + 2);
|
|
0
|
330 if (cs_washer > 0)
|
|
|
331 translate([0, 0, washer_h - cs_washer])
|
|
|
332 cylinder(d1 = hole_d, d2 = hole_d + 2 * cs_washer + 2 * epsilon,
|
|
|
333 h = cs_washer + epsilon);
|
|
|
334 }
|
|
|
335 }
|
|
|
336
|
|
|
337 // Drilling template in 2D, as seen on the wall: all glyphs of the text at
|
|
2
|
338 // their place, a circle of the hole or magnet diameter and a cross at each
|
|
|
339 // hole, a level line along the
|
|
0
|
340 // baseline and a 100 mm scale bar with 10 mm ticks. Everything is made of
|
|
|
341 // thin strips, so the outlines of the SVG export show each line.
|
|
|
342 module template() {
|
|
|
343 t = .2; // strip width
|
|
|
344 // wall layout: text positions, no rotation, no mirroring
|
|
|
345 function pos(g, p) = k * [p.x + g[2], p.y];
|
|
|
346 pts = [for (g = g_glyphs) for (p = g[4]) pos(g, p)];
|
|
|
347 x0 = min([for (p = pts) p.x]);
|
|
|
348 x1 = max([for (p = pts) p.x]);
|
|
|
349 y0 = min([for (p = pts) p.y]);
|
|
|
350 arm = washer_od / 2 + 5;
|
|
|
351 for (g = g_glyphs) {
|
|
|
352 scale(k) translate([g[2], 0]) difference() {
|
|
|
353 import(g[1]);
|
|
|
354 offset(delta = -t / k) import(g[1]);
|
|
|
355 }
|
|
|
356 for (h = g[5]) translate(pos(g, h)) {
|
|
|
357 difference() {
|
|
2
|
358 circle(d = bore_d);
|
|
|
359 circle(d = bore_d - 2 * t);
|
|
0
|
360 }
|
|
|
361 square([2 * arm, t], center = true);
|
|
|
362 square([t, 2 * arm], center = true);
|
|
|
363 }
|
|
|
364 }
|
|
|
365 // level line along the baseline
|
|
|
366 translate([x0 - 20, -t / 2]) square([x1 - x0 + 40, t]);
|
|
|
367 // scale bar below the text
|
|
|
368 translate([x0, y0 - 20]) {
|
|
|
369 square([100, t]);
|
|
|
370 for (i = [0 : 10])
|
|
|
371 translate([10 * i - t / 2, 0]) square([t, i % 5 == 0 ? 6 : 3]);
|
|
|
372 }
|
|
|
373 }
|
|
|
374
|
|
|
375 // Assembly view: glyphs face up as on the wall, washers behind the holes.
|
|
|
376 module assembly() {
|
|
|
377 rotate([0, 180, 0]) {
|
|
|
378 color("lightgray") body(frame = false);
|
|
|
379 if (two_colour) color("firebrick") decal(frame = false);
|
|
|
380 if (!washers_on_body)
|
|
|
381 color("steelblue") for (h = holes)
|
|
2
|
382 if (magnet) translate([h[0].x, h[0].y, total_t]) washer();
|
|
|
383 else translate([h[0].x, h[0].y, total_t + washer_h]) mirror([0, 0, 1]) washer();
|
|
0
|
384 }
|
|
|
385 }
|
|
|
386
|
|
|
387 // Output the selected part.
|
|
|
388 module main() {
|
|
|
389 if (part == "all") assembly();
|
|
|
390 else if (part == "body") body();
|
|
|
391 else if (part == "decal") decal();
|
|
|
392 else if (part == "washer") washer();
|
|
|
393 else if (part == "template") template();
|
|
|
394 }
|
|
|
395
|
|
|
396 main();
|
|
|
397
|
|
|
398 // Export file name without extension, see the print settings for lw and lh.
|
|
|
399 // prefix: project name with trailing underscore. suffix: appended as is.
|
|
|
400 function paramstring(prefix = "", suffix = "") = str(
|
|
|
401 prefix,
|
|
|
402 part == "all" ? "" : str(part, "_"),
|
|
|
403 part == "template" ? str(g_name, "_s", round(10 * final_size))
|
|
|
404 : part == "washer"
|
|
2
|
405 ? magnet
|
|
|
406 ? str(magnet_str, "_w", washer_wall_lines, "h", round(10 * washer_h))
|
|
|
407 : str(countersink ? "cs_" : "", "d", round(10 * screw_d), "w", washer_wall_lines,
|
|
|
408 "h", round(10 * washer_h), countersink ? str("c", round(10 * cs_washer)) : "")
|
|
0
|
409 : str(g_name, "_", layout == "glyph" ? str("g", glyph_index, "_") : "",
|
|
3
|
410 two_colour ? str("2cd", decal_n, "_") : "", backing ? "bk_" : "",
|
|
2
|
411 magnet ? (washers_on_body ? str(magnet_str, "_") : "mg_")
|
|
|
412 : countersink ? "cs_" : "",
|
|
0
|
413 washers_on_body ? str("wh", round(10 * washer_h), "_") : "",
|
|
|
414 "s", round(10 * final_size), "a", round(print_angle), "t", glyph_layers),
|
|
|
415 "_lw", round(100 * line_width), "lh", round(100 * layer_height),
|
|
|
416 suffix);
|
|
|
417
|
|
|
418 echo(paramstring("house_number_"));
|