wobblyhead hg > 3dprints > house_number
comparison README.md @ 4:4836a7408849
more elaborate hole finding
| author | ark |
|---|---|
| date | 2026-11-03 15:51 +0100 |
| parents | f5ff6f1a5454 |
| children |
comparison
equal
deleted
inserted
replaced
| 3:f5ff6f1a5454 | 4:4836a7408849 |
|---|---|
| 1 # House number | 1 # House number |
| 2 | 2 |
| 3 3D-printed house numbers, or any other text, to fix to a wall. Each glyph | 3 3D-printed house numbers, or any other text, to fix to a wall. Each glyph |
| 4 is a separate flat piece with two countersunk screw holes. Distance washers | 4 is a separate flat piece with countersunk screw holes. Distance washers |
| 5 behind the holes keep it off the wall and take up unevenness. Instead of | 5 behind the holes keep it off the wall and take up unevenness. Instead of |
| 6 screws, magnets pressed into the washers can hold the glyph. The glyphs | 6 screws, magnets pressed into the washers can hold the glyph. The glyphs |
| 7 print face down. A two-colour look with an outline band is possible on a | 7 print face down. A two-colour look with an outline band is possible on a |
| 8 single-colour printer by changing filament once. | 8 single-colour printer by changing filament once. |
| 9 | 9 |
| 75 | 75 |
| 76 - text: the whole text in one print, spaced as the font spaces it. | 76 - text: the whole text in one print, spaced as the font spaces it. |
| 77 - glyph: one glyph per print, all glyphs at the same size. | 77 - glyph: one glyph per print, all glyphs at the same size. |
| 78 | 78 |
| 79 For both, the script reports the largest size unrotated and at the best | 79 For both, the script reports the largest size unrotated and at the best |
| 80 angle between 0 and 90 degrees. In Helvetica Bold, "24" reaches 189 mm in | 80 angle between 0 and 90 degrees. Rotation helps narrow fonts: in SF Extra |
| 81 the text layout and 278 mm per glyph; rotation gains nothing. In SF Extra | 81 Compressed Thin, 45 degrees raises the size per glyph from 278 to 325 mm. |
| 82 Compressed Thin, turning the glyphs by 45 degrees raises the size per glyph | |
| 83 from 278 to 325 mm. | |
| 84 | 82 |
| 85 The holes are placed for one size, by default the largest unrotated size in | 83 The holes are placed for one size, by default the largest unrotated size in |
| 86 the glyph layout. `--layout`, `--angle` (-1 for the best) and `--size` | 84 the glyph layout. `--layout`, `--angle` (-1 for the best) and `--size` |
| 87 choose another. OpenSCAD can scale to any size later; it then checks that | 85 choose another. OpenSCAD can scale to any size later; it then checks that |
| 88 the screw heads still fit. | 86 the screw heads still fit. |
| 89 | 87 |
| 90 ### Screw holes | 88 ### Mounting points |
| 91 | 89 |
| 92 Each glyph gets two holes, one near its upper and one near its lower end: | 90 The script looks for the best mounting points on each glyph: spread wide, |
| 93 | 91 so the glyph sits firmly on its washers and does not tip, and each in the |
| 94 1. Only points where the screw head (8 mm, `--head-d`) plus a wall of 2 | 92 middle of a stroke with room for the screw head (8 mm, `--head-d`) plus a |
| 95 line widths (`--wall-lines`) fits inside the glyph are considered. | 93 wall of 2 line widths (`--wall-lines`). For magnets, pass the magnet |
| 96 2. The glyph's main axis is found from its inked area. It follows the slant | 94 diameter as `--head-d`. |
| 97 of italic and script fonts and turns sideways for wide glyphs. | 95 |
| 98 `--vertical-axis` forces it upright. | 96 By default each glyph gets two holes, near its upper and lower end. |
| 99 3. Along the axis, the holes aim at 85% and 15% of the glyph length | 97 `--holes` sets the most holes per glyph, up to 6. Three holes make a glyph |
| 100 (`--target`). Distance from the axis is penalised (`--side-weight`); | 98 sit flat; more are used only where they clearly improve the hold. In |
| 101 sitting in the middle of the stroke is rewarded (`--centre-weight`). | 99 Futura Bold, "W" and "H" get four, most glyphs three, and "I" two. The |
| 102 4. Where no point has room for the head, the hole goes to the thickest | 100 script prints the number of holes per glyph, and why it stayed below the |
| 103 point of that half, and the script warns. | 101 maximum. It warns where a head does not fit. |
| 104 | 102 |
| 105 For magnets, pass the magnet diameter as `--head-d`, so the holes go where | 103 Further options tune the placement, see `--help`. The comments in |
| 106 the magnet plus the wall fits. | 104 `make_glyphs.py` describe the method. |
| 107 | 105 |
| 108 The check images show the glyph in grey, the area with room for the head in | 106 The check images show the glyph in grey, the area with room for the head in |
| 109 green, the axis in blue and the holes in red, orange where the head does not | 107 green, the axis or the hole polygon and the centre in blue, and the holes in |
| 110 fit. | 108 red, orange where the head does not fit. |
| 111 | 109 |
| 112 ### Glyphs of several parts | 110 ### Glyphs of several parts |
| 113 | 111 |
| 114 Glyphs such as "i", "ä" or "%" consist of separate parts. The script | 112 Glyphs such as "i", "ä" or "%" consist of separate parts. The script |
| 115 reports them and works out a backing that connects them, see below. A hole | 113 reports them and works out a backing that connects them, see below. A hole |
| 116 can land in a separate part when the target position lies there, such as | 114 can land in a separate part, such as the dot of "i". |
| 117 the dot of "i". | |
| 118 | 115 |
| 119 ### Fonts with overlapping outlines | 116 ### Fonts with overlapping outlines |
| 120 | 117 |
| 121 Many fonts, variable fonts in particular, draw glyphs from overlapping or | 118 Many fonts, variable fonts in particular, draw glyphs from overlapping or |
| 122 self-crossing contours. OpenSCAD's SVG import would turn the overlaps into | 119 self-crossing contours. OpenSCAD's SVG import would turn the overlaps into |
| 123 holes. The script splits and groups the contours so the imported shape | 120 holes. The scripts correct this and report where the result still differs |
| 124 matches the font, and compares the result with the font's own filling. Both | 121 from the font's own filling. |
| 125 scripts report a difference. | |
| 126 | 122 |
| 127 ## The model | 123 ## The model |
| 128 | 124 |
| 129 Open `main.scad` in OpenSCAD and set the parameters in the customizer. The | 125 Open `main.scad` in OpenSCAD and set the parameters in the customizer. The |
| 130 console shows the size, thicknesses, warnings and a file name for the | 126 console shows the size, thicknesses, warnings and a file name for the |
| 149 | 145 |
| 150 ### Glyph | 146 ### Glyph |
| 151 | 147 |
| 152 `glyph_layers` sets the thickness, 6 layers by default: 1.2 mm at 0.2 mm | 148 `glyph_layers` sets the thickness, 6 layers by default: 1.2 mm at 0.2 mm |
| 153 layers. `backing` adds `backing_layers` (4 by default) behind the glyph, | 149 layers. `backing` adds `backing_layers` (4 by default) behind the glyph, |
| 154 covering its outline. For glyphs of several parts the backing is the outline | 150 covering its outline. For glyphs of several parts the backing also fills |
| 155 grown and shrunk back, so the parts join; where that does not work, it fills | 151 the gaps between the parts, or, where they lie far apart, the convex hull. |
| 156 the convex hull. The gaps between parts are bridged and may need supports. | 152 The gaps are bridged and may need supports. |
| 157 | 153 |
| 158 ### Screws | 154 ### Screws |
| 159 | 155 |
| 160 `screw_d` (4 mm) and `head_d` (8 mm) set the hole and the countersink, each | 156 `screw_d` (4 mm) and `head_d` (8 mm) set the hole and the countersink, each |
| 161 widened by `clearance` on both sides. The countersink is 90 degrees and | 157 widened by `clearance` on both sides. The countersink is 90 degrees and |
| 200 ### Two-colour print | 196 ### Two-colour print |
| 201 | 197 |
| 202 With `two_colour`, the glyph is split into a body and a decal: | 198 With `two_colour`, the glyph is split into a body and a decal: |
| 203 | 199 |
| 204 - The decal is a band of `band_width` (4 mm) along the glyph outline, | 200 - The decal is a band of `band_width` (4 mm) along the glyph outline, |
| 205 `decal_layers` thick (2, at most 10). It is limited to the glyph | 201 `decal_layers` thick: 2 by default, at most 10 and at most the glyph |
| 206 thickness less 2 layers. | 202 thickness less 2 layers. |
| 207 - The band is `band_width` wide on the face and narrows by one layer height | 203 - The band narrows towards the back, so the nozzle can reach the body's |
| 208 per layer at its inner edge. The edge slopes away from the body, so the | 204 first layers next to the decal. How many decal layers the nozzle clears |
| 209 nozzle can reach the body's lower layers next to the decal. How many | 205 depends on its shape; test it on your printer. A warning is shown when |
| 210 layers the nozzle clears depends on its shape; test it on your printer. | 206 the band's top layer gets narrower than a line width. |
| 211 A warning is shown when the top layer of the band is narrower than a | |
| 212 line width. | |
| 213 - The body fills the decal layers inside the band, with no gap to the | |
| 214 decal. | |
| 215 - Both contain the same frame, one layer high and one line width wide, | 207 - Both contain the same frame, one layer high and one line width wide, |
| 216 around the glyphs. It makes the slicer place both parts in the same spot. | 208 around the glyphs. It makes the slicer place both parts in the same spot. |
| 217 | 209 |
| 218 To print: | 210 To print: |
| 219 | 211 |
| 226 face shows only the decal colour. | 218 face shows only the decal colour. |
| 227 | 219 |
| 228 ### Export | 220 ### Export |
| 229 | 221 |
| 230 Render (F6) and export the 3D parts as STL. The file name echoed in the | 222 Render (F6) and export the 3D parts as STL. The file name echoed in the |
| 231 console carries font, text, glyph, options, size, angle and print settings, | 223 console carries font, text, glyph, options, size, angle and print settings. |
| 232 for example | 224 A maximum hole count other than 2 adds `h` and the count after the |
| 225 attachment, such as `cs_h3_`. For example: | |
| 233 | 226 |
| 234 house_number_body_Futura-Bold_24_g0_2cd2_cs_s2780a0t6_lw40lh20.stl | 227 house_number_body_Futura-Bold_24_g0_2cd2_cs_s2780a0t6_lw40lh20.stl |
| 235 | 228 |
| 236 ## Drilling template | 229 ## Drilling template |
| 237 | 230 |
