annotate README.md @ 4:4836a7408849

more elaborate hole finding
author ark
date 2026-11-03 15:51 +0100
parents f5ff6f1a5454
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
1 # House number
b5a96b547b01 initial public version
ark
parents:
diff changeset
2
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
3 3D-printed house numbers, or any other text, to fix to a wall. Each glyph
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
4 is a separate flat piece with countersunk screw holes. Distance washers
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
5 behind the holes keep it off the wall and take up unevenness. Instead of
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
6 screws, magnets pressed into the washers can hold the glyph. The glyphs
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
7 print face down. A two-colour look with an outline band is possible on a
b5a96b547b01 initial public version
ark
parents:
diff changeset
8 single-colour printer by changing filament once.
b5a96b547b01 initial public version
ark
parents:
diff changeset
9
b5a96b547b01 initial public version
ark
parents:
diff changeset
10 The work is split in three steps:
b5a96b547b01 initial public version
ark
parents:
diff changeset
11
b5a96b547b01 initial public version
ark
parents:
diff changeset
12 1. `make_preview.py` renders the text in every installed font, to choose
b5a96b547b01 initial public version
ark
parents:
diff changeset
13 one.
b5a96b547b01 initial public version
ark
parents:
diff changeset
14 2. `make_glyphs.py` turns the text in the chosen font into glyph outlines,
b5a96b547b01 initial public version
ark
parents:
diff changeset
15 works out the largest printable size and places the screw holes.
b5a96b547b01 initial public version
ark
parents:
diff changeset
16 3. `main.scad` builds the printable parts in OpenSCAD, and a drilling
b5a96b547b01 initial public version
ark
parents:
diff changeset
17 template, which `make_template.py` splits into printable pages.
b5a96b547b01 initial public version
ark
parents:
diff changeset
18
b5a96b547b01 initial public version
ark
parents:
diff changeset
19 ## Requirements
b5a96b547b01 initial public version
ark
parents:
diff changeset
20
b5a96b547b01 initial public version
ark
parents:
diff changeset
21 - Python 3 with fontTools, Pillow and numpy. `make_template.py` needs only
b5a96b547b01 initial public version
ark
parents:
diff changeset
22 the standard library.
b5a96b547b01 initial public version
ark
parents:
diff changeset
23 - fontconfig's `fc-list`, which the scripts use to find fonts.
b5a96b547b01 initial public version
ark
parents:
diff changeset
24 - An OpenSCAD development snapshot. The model uses features newer than the
b5a96b547b01 initial public version
ark
parents:
diff changeset
25 2021.01 release.
b5a96b547b01 initial public version
ark
parents:
diff changeset
26
b5a96b547b01 initial public version
ark
parents:
diff changeset
27 ## Choosing a font
b5a96b547b01 initial public version
ark
parents:
diff changeset
28
b5a96b547b01 initial public version
ark
parents:
diff changeset
29 ./make_preview.py --text 24
b5a96b547b01 initial public version
ark
parents:
diff changeset
30
b5a96b547b01 initial public version
ark
parents:
diff changeset
31 writes one PNG per font into `preview/`. Each image shows the text as it
b5a96b547b01 initial public version
ark
parents:
diff changeset
32 will be printed, drawn from the same outlines as the model. The caption
b5a96b547b01 initial public version
ark
parents:
diff changeset
33 gives family, style, PostScript name, weight, classification and the
b5a96b547b01 initial public version
ark
parents:
diff changeset
34 largest printable size. The file name is the font's PostScript name, so the
b5a96b547b01 initial public version
ark
parents:
diff changeset
35 image can be passed to `make_glyphs.py` as it is. Named instances of
b5a96b547b01 initial public version
ark
parents:
diff changeset
36 variable fonts, such as the weights of SF Pro, count as separate fonts.
b5a96b547b01 initial public version
ark
parents:
diff changeset
37 Fonts that lack a character of the text are skipped.
b5a96b547b01 initial public version
ark
parents:
diff changeset
38
b5a96b547b01 initial public version
ark
parents:
diff changeset
39 On the development machine, all installed fonts took about 2 minutes and
b5a96b547b01 initial public version
ark
parents:
diff changeset
40 244 MB. Filters narrow the selection:
b5a96b547b01 initial public version
ark
parents:
diff changeset
41
b5a96b547b01 initial public version
ark
parents:
diff changeset
42 ./make_preview.py --text 24 --family 'helvetica|futura' --weight-min 600
b5a96b547b01 initial public version
ark
parents:
diff changeset
43 ./make_preview.py --text 24 --class serif --no-italic
b5a96b547b01 initial public version
ark
parents:
diff changeset
44
b5a96b547b01 initial public version
ark
parents:
diff changeset
45 `--family` and `--name` take regular expressions, matched against the
b5a96b547b01 initial public version
ark
parents:
diff changeset
46 family and the PostScript name. `--italic`, `--mono` and their `--no-`
b5a96b547b01 initial public version
ark
parents:
diff changeset
47 forms select by style. `--class serif` or `--class sans` keeps only fonts
b5a96b547b01 initial public version
ark
parents:
diff changeset
48 that classify themselves that way; many fonts carry no classification and
b5a96b547b01 initial public version
ark
parents:
diff changeset
49 appear only without this filter. `--list` prints the matching fonts
b5a96b547b01 initial public version
ark
parents:
diff changeset
50 without rendering.
b5a96b547b01 initial public version
ark
parents:
diff changeset
51
b5a96b547b01 initial public version
ark
parents:
diff changeset
52 To see the two-colour look, give the band width in mm:
b5a96b547b01 initial public version
ark
parents:
diff changeset
53
b5a96b547b01 initial public version
ark
parents:
diff changeset
54 ./make_preview.py --text 24 --band 4 --fill '#202020' --outline '#c03030' --background '#e8e4dc'
b5a96b547b01 initial public version
ark
parents:
diff changeset
55
b5a96b547b01 initial public version
ark
parents:
diff changeset
56 The band is scaled to each font's largest print size in the single-glyph
b5a96b547b01 initial public version
ark
parents:
diff changeset
57 layout, or in the whole-text layout with `--layout text`.
b5a96b547b01 initial public version
ark
parents:
diff changeset
58
b5a96b547b01 initial public version
ark
parents:
diff changeset
59 ## Glyph data
b5a96b547b01 initial public version
ark
parents:
diff changeset
60
b5a96b547b01 initial public version
ark
parents:
diff changeset
61 ./make_glyphs.py preview/Futura-Bold.png 24
b5a96b547b01 initial public version
ark
parents:
diff changeset
62 ./make_glyphs.py Futura-Bold 24
b5a96b547b01 initial public version
ark
parents:
diff changeset
63
b5a96b547b01 initial public version
ark
parents:
diff changeset
64 The font is given by PostScript name or preview image. The script writes
b5a96b547b01 initial public version
ark
parents:
diff changeset
65 `glyphs.scad`, which `main.scad` includes, and a directory
b5a96b547b01 initial public version
ark
parents:
diff changeset
66 `generated/<font>_<text>/` with an SVG outline and a check image per glyph.
b5a96b547b01 initial public version
ark
parents:
diff changeset
67 It prints the largest sizes and the hole positions; warnings go to standard
b5a96b547b01 initial public version
ark
parents:
diff changeset
68 error.
b5a96b547b01 initial public version
ark
parents:
diff changeset
69
b5a96b547b01 initial public version
ark
parents:
diff changeset
70 ### Size
b5a96b547b01 initial public version
ark
parents:
diff changeset
71
b5a96b547b01 initial public version
ark
parents:
diff changeset
72 Size is the height of the tallest glyph, in mm. The usable area is the bed
b5a96b547b01 initial public version
ark
parents:
diff changeset
73 (300 mm) minus its margin (10 mm) and the frame of the two-colour print:
b5a96b547b01 initial public version
ark
parents:
diff changeset
74 280 mm minus 4 line widths. Two layouts fit differently:
b5a96b547b01 initial public version
ark
parents:
diff changeset
75
b5a96b547b01 initial public version
ark
parents:
diff changeset
76 - text: the whole text in one print, spaced as the font spaces it.
b5a96b547b01 initial public version
ark
parents:
diff changeset
77 - glyph: one glyph per print, all glyphs at the same size.
b5a96b547b01 initial public version
ark
parents:
diff changeset
78
b5a96b547b01 initial public version
ark
parents:
diff changeset
79 For both, the script reports the largest size unrotated and at the best
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
80 angle between 0 and 90 degrees. Rotation helps narrow fonts: in SF Extra
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
81 Compressed Thin, 45 degrees raises the size per glyph from 278 to 325 mm.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
82
b5a96b547b01 initial public version
ark
parents:
diff changeset
83 The holes are placed for one size, by default the largest unrotated size in
b5a96b547b01 initial public version
ark
parents:
diff changeset
84 the glyph layout. `--layout`, `--angle` (-1 for the best) and `--size`
b5a96b547b01 initial public version
ark
parents:
diff changeset
85 choose another. OpenSCAD can scale to any size later; it then checks that
b5a96b547b01 initial public version
ark
parents:
diff changeset
86 the screw heads still fit.
b5a96b547b01 initial public version
ark
parents:
diff changeset
87
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
88 ### Mounting points
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
89
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
90 The script looks for the best mounting points on each glyph: spread wide,
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
91 so the glyph sits firmly on its washers and does not tip, and each in the
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
92 middle of a stroke with room for the screw head (8 mm, `--head-d`) plus a
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
93 wall of 2 line widths (`--wall-lines`). For magnets, pass the magnet
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
94 diameter as `--head-d`.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
95
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
96 By default each glyph gets two holes, near its upper and lower end.
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
97 `--holes` sets the most holes per glyph, up to 6. Three holes make a glyph
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
98 sit flat; more are used only where they clearly improve the hold. In
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
99 Futura Bold, "W" and "H" get four, most glyphs three, and "I" two. The
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
100 script prints the number of holes per glyph, and why it stayed below the
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
101 maximum. It warns where a head does not fit.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
102
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
103 Further options tune the placement, see `--help`. The comments in
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
104 `make_glyphs.py` describe the method.
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
105
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
106 The check images show the glyph in grey, the area with room for the head in
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
107 green, the axis or the hole polygon and the centre in blue, and the holes in
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
108 red, orange where the head does not fit.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
109
b5a96b547b01 initial public version
ark
parents:
diff changeset
110 ### Glyphs of several parts
b5a96b547b01 initial public version
ark
parents:
diff changeset
111
b5a96b547b01 initial public version
ark
parents:
diff changeset
112 Glyphs such as "i", "ä" or "%" consist of separate parts. The script
b5a96b547b01 initial public version
ark
parents:
diff changeset
113 reports them and works out a backing that connects them, see below. A hole
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
114 can land in a separate part, such as the dot of "i".
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
115
b5a96b547b01 initial public version
ark
parents:
diff changeset
116 ### Fonts with overlapping outlines
b5a96b547b01 initial public version
ark
parents:
diff changeset
117
b5a96b547b01 initial public version
ark
parents:
diff changeset
118 Many fonts, variable fonts in particular, draw glyphs from overlapping or
b5a96b547b01 initial public version
ark
parents:
diff changeset
119 self-crossing contours. OpenSCAD's SVG import would turn the overlaps into
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
120 holes. The scripts correct this and report where the result still differs
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
121 from the font's own filling.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
122
b5a96b547b01 initial public version
ark
parents:
diff changeset
123 ## The model
b5a96b547b01 initial public version
ark
parents:
diff changeset
124
b5a96b547b01 initial public version
ark
parents:
diff changeset
125 Open `main.scad` in OpenSCAD and set the parameters in the customizer. The
b5a96b547b01 initial public version
ark
parents:
diff changeset
126 console shows the size, thicknesses, warnings and a file name for the
b5a96b547b01 initial public version
ark
parents:
diff changeset
127 export.
b5a96b547b01 initial public version
ark
parents:
diff changeset
128
b5a96b547b01 initial public version
ark
parents:
diff changeset
129 ### Parts
b5a96b547b01 initial public version
ark
parents:
diff changeset
130
b5a96b547b01 initial public version
ark
parents:
diff changeset
131 - `all`: the glyphs as they hang on the wall, with the washers behind them.
b5a96b547b01 initial public version
ark
parents:
diff changeset
132 - `body`: the glyph in print orientation, face on the bed. In single-colour
b5a96b547b01 initial public version
ark
parents:
diff changeset
133 mode this is the whole print.
b5a96b547b01 initial public version
ark
parents:
diff changeset
134 - `decal`: the outline band of the two-colour print.
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
135 - `washer`: one distance washer. Make copies in the slicer. With magnets,
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
136 print one first to test the fit.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
137 - `template`: the drilling template, 2D.
b5a96b547b01 initial public version
ark
parents:
diff changeset
138
b5a96b547b01 initial public version
ark
parents:
diff changeset
139 ### Layout and size
b5a96b547b01 initial public version
ark
parents:
diff changeset
140
b5a96b547b01 initial public version
ark
parents:
diff changeset
141 `layout` chooses between the whole text and one glyph per print.
b5a96b547b01 initial public version
ark
parents:
diff changeset
142 `glyph_index` picks the glyph, counted from 0 without spaces. `size` 0 uses
b5a96b547b01 initial public version
ark
parents:
diff changeset
143 the largest size that fits, `angle` -1 the best angle. `bed_size` and
b5a96b547b01 initial public version
ark
parents:
diff changeset
144 `bed_margin` describe the printer.
b5a96b547b01 initial public version
ark
parents:
diff changeset
145
b5a96b547b01 initial public version
ark
parents:
diff changeset
146 ### Glyph
b5a96b547b01 initial public version
ark
parents:
diff changeset
147
b5a96b547b01 initial public version
ark
parents:
diff changeset
148 `glyph_layers` sets the thickness, 6 layers by default: 1.2 mm at 0.2 mm
b5a96b547b01 initial public version
ark
parents:
diff changeset
149 layers. `backing` adds `backing_layers` (4 by default) behind the glyph,
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
150 covering its outline. For glyphs of several parts the backing also fills
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
151 the gaps between the parts, or, where they lie far apart, the convex hull.
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
152 The gaps are bridged and may need supports.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
153
b5a96b547b01 initial public version
ark
parents:
diff changeset
154 ### Screws
b5a96b547b01 initial public version
ark
parents:
diff changeset
155
b5a96b547b01 initial public version
ark
parents:
diff changeset
156 `screw_d` (4 mm) and `head_d` (8 mm) set the hole and the countersink, each
b5a96b547b01 initial public version
ark
parents:
diff changeset
157 widened by `clearance` on both sides. The countersink is 90 degrees and
b5a96b547b01 initial public version
ark
parents:
diff changeset
158 opens towards the bed. With thin glyphs it is deeper than the glyph: at the
b5a96b547b01 initial public version
ark
parents:
diff changeset
159 defaults 2 mm against 1.2 mm. The washer then continues the cone.
b5a96b547b01 initial public version
ark
parents:
diff changeset
160
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
161 `fit_wall_lines` (2) is the material required around the screw head, or
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
162 around the magnet, in line widths. Where a hole position from
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
163 `glyphs.scad` has less room at the print size, the console shows a warning.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
164
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
165 ### Magnets
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
166
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
167 With `attachment` set to `magnet`, the glyph has no holes. Each washer
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
168 holds a magnet in a pocket at its wall end instead.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
169
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
170 `magnet_d` and `magnet_h` set the pocket diameter and depth in steps of
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
171 0.05 mm. They are used as given, without `clearance`, so the press fit can
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
172 be tuned directly. Print a single washer to test the fit before printing
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
173 the glyphs. An open pocket of the magnet's height leaves the magnet flush
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
174 with the washer end.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
175
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
176 `seal_magnets` closes each pocket with two layers. The pocket depth is
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
177 rounded up to whole layers, with a warning. The console gives the height
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
178 and layer number after which to pause the print. Insert the magnets in the
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
179 pause, then let the print finish over them.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
180
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
181 ### Washers
b5a96b547b01 initial public version
ark
parents:
diff changeset
182
b5a96b547b01 initial public version
ark
parents:
diff changeset
183 The washer wall is `washer_wall_lines` line widths around the hole, 8 by
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
184 default, around the screw hole or the magnet pocket. `washer_height`
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
185 defaults to 10 mm and is rounded to whole layers. It is raised, with a
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
186 warning, to the part of the countersink or the magnet pocket inside the
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
187 washer plus 4 layers. A washer for screws prints with the glyph side up, a
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
188 washer for magnets with the pocket up. A separate magnet washer is glued
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
189 to the back of the glyph.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
190
b5a96b547b01 initial public version
ark
parents:
diff changeset
191 With `washers_on_body`, the washers are part of the body instead, standing
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
192 on the glyph's back, with the magnet pockets at their top. Where a washer
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
193 is wider than the glyph at that point, it is cut back to the outline so it
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
194 does not overhang, and a warning is shown.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
195
b5a96b547b01 initial public version
ark
parents:
diff changeset
196 ### Two-colour print
b5a96b547b01 initial public version
ark
parents:
diff changeset
197
b5a96b547b01 initial public version
ark
parents:
diff changeset
198 With `two_colour`, the glyph is split into a body and a decal:
b5a96b547b01 initial public version
ark
parents:
diff changeset
199
3
f5ff6f1a5454 better decal handling
ark
parents: 2
diff changeset
200 - The decal is a band of `band_width` (4 mm) along the glyph outline,
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
201 `decal_layers` thick: 2 by default, at most 10 and at most the glyph
3
f5ff6f1a5454 better decal handling
ark
parents: 2
diff changeset
202 thickness less 2 layers.
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
203 - The band narrows towards the back, so the nozzle can reach the body's
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
204 first layers next to the decal. How many decal layers the nozzle clears
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
205 depends on its shape; test it on your printer. A warning is shown when
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
206 the band's top layer gets narrower than a line width.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
207 - Both contain the same frame, one layer high and one line width wide,
b5a96b547b01 initial public version
ark
parents:
diff changeset
208 around the glyphs. It makes the slicer place both parts in the same spot.
b5a96b547b01 initial public version
ark
parents:
diff changeset
209
b5a96b547b01 initial public version
ark
parents:
diff changeset
210 To print:
b5a96b547b01 initial public version
ark
parents:
diff changeset
211
1
aa23650954d6 doc: added reminder about z-hop in slicer
ark
parents: 0
diff changeset
212 1. Slice decal and body with the same settings, but add a Z-hop to the body.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
213 2. Print the decal.
b5a96b547b01 initial public version
ark
parents:
diff changeset
214 3. Change filament. Remove the skirt, if any, and the frame.
b5a96b547b01 initial public version
ark
parents:
diff changeset
215 4. Print the body on top.
b5a96b547b01 initial public version
ark
parents:
diff changeset
216
b5a96b547b01 initial public version
ark
parents:
diff changeset
217 Where a stroke is too narrow to leave body material between the bands, the
b5a96b547b01 initial public version
ark
parents:
diff changeset
218 face shows only the decal colour.
b5a96b547b01 initial public version
ark
parents:
diff changeset
219
b5a96b547b01 initial public version
ark
parents:
diff changeset
220 ### Export
b5a96b547b01 initial public version
ark
parents:
diff changeset
221
b5a96b547b01 initial public version
ark
parents:
diff changeset
222 Render (F6) and export the 3D parts as STL. The file name echoed in the
4
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
223 console carries font, text, glyph, options, size, angle and print settings.
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
224 A maximum hole count other than 2 adds `h` and the count after the
4836a7408849 more elaborate hole finding
ark
parents: 3
diff changeset
225 attachment, such as `cs_h3_`. For example:
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
226
3
f5ff6f1a5454 better decal handling
ark
parents: 2
diff changeset
227 house_number_body_Futura-Bold_24_g0_2cd2_cs_s2780a0t6_lw40lh20.stl
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
228
b5a96b547b01 initial public version
ark
parents:
diff changeset
229 ## Drilling template
b5a96b547b01 initial public version
ark
parents:
diff changeset
230
b5a96b547b01 initial public version
ark
parents:
diff changeset
231 The holes do not line up with each other, so a full-size template shows
b5a96b547b01 initial public version
ark
parents:
diff changeset
232 where to drill. Set `part` to `template`, render and export as SVG. The
b5a96b547b01 initial public version
ark
parents:
diff changeset
233 template uses the same size as the print and shows:
b5a96b547b01 initial public version
ark
parents:
diff changeset
234
b5a96b547b01 initial public version
ark
parents:
diff changeset
235 - the glyph outlines where they hang on the wall, spaced as the font spaces
b5a96b547b01 initial public version
ark
parents:
diff changeset
236 them, also when the glyphs are printed one at a time;
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
237 - a circle of the hole or magnet diameter at each hole, with a cross
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
238 reaching past the washer;
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
239 - a level line along the baseline;
b5a96b547b01 initial public version
ark
parents:
diff changeset
240 - a 100 mm scale bar with 10 mm ticks.
b5a96b547b01 initial public version
ark
parents:
diff changeset
241
b5a96b547b01 initial public version
ark
parents:
diff changeset
242 Then
b5a96b547b01 initial public version
ark
parents:
diff changeset
243
b5a96b547b01 initial public version
ark
parents:
diff changeset
244 ./make_template.py house_number_template_Futura-Bold_24_s2780_lw40lh20.svg
b5a96b547b01 initial public version
ark
parents:
diff changeset
245
b5a96b547b01 initial public version
ark
parents:
diff changeset
246 writes a PDF of the same name, split over A4 pages, portrait or landscape,
b5a96b547b01 initial public version
ark
parents:
diff changeset
247 whichever needs fewer. Print it at 100% and check the scale bar.
b5a96b547b01 initial public version
ark
parents:
diff changeset
248 Neighbouring pages overlap by 10 mm. A dashed line with crosses every 50 mm
b5a96b547b01 initial public version
ark
parents:
diff changeset
249 runs through the middle of each overlap. Trim one sheet along the line, lay
b5a96b547b01 initial public version
ark
parents:
diff changeset
250 it over its neighbour so line and crosses match, and tape it. Each page
b5a96b547b01 initial public version
ark
parents:
diff changeset
251 names its row and column in the bottom margin.
b5a96b547b01 initial public version
ark
parents:
diff changeset
252
b5a96b547b01 initial public version
ark
parents:
diff changeset
253 `--paper` (a4, a3, letter, legal), `--margin` (unprintable edge, 6 mm) and
b5a96b547b01 initial public version
ark
parents:
diff changeset
254 `--overlap` change the page layout.
b5a96b547b01 initial public version
ark
parents:
diff changeset
255
b5a96b547b01 initial public version
ark
parents:
diff changeset
256 ## Files
b5a96b547b01 initial public version
ark
parents:
diff changeset
257
b5a96b547b01 initial public version
ark
parents:
diff changeset
258 - `make_preview.py`, `make_glyphs.py`, `make_template.py`: the scripts.
b5a96b547b01 initial public version
ark
parents:
diff changeset
259 Each lists its options with `--help`.
b5a96b547b01 initial public version
ark
parents:
diff changeset
260 - `fontlib.py`: code shared by the first two.
b5a96b547b01 initial public version
ark
parents:
diff changeset
261 - `main.scad`: the model.
b5a96b547b01 initial public version
ark
parents:
diff changeset
262 - `glyphs.scad`, `generated/`: written by `make_glyphs.py`.
b5a96b547b01 initial public version
ark
parents:
diff changeset
263 - `preview/`: written by `make_preview.py`.