diff --git a/.gitignore b/.gitignore index 6f9d8d4..b520c44 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,10 @@ *.swo *~ +# Generator build products +*-src/out/ +*-src/work/ +__pycache__/ + # Claude Code local settings .claude/ diff --git a/CLAUDE.md b/CLAUDE.md index ae73aed..b2fc3cc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam and printed parts, paint techniques, sewing, electronics), so each one ships a guide plus whatever files that project needs. The index must not promise templates or print files for every build. There is no build step and no backend. +Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam and printed parts, paint techniques, sewing, electronics), so each one ships a guide plus whatever files that project needs. The index must not promise templates or print files for every build. The site itself is static with no backend. A build's page may be generated from a source folder (`-src/`), which lives in this repo but is never deployed. **Live URL:** https://builds.kestrelsnest.social @@ -15,7 +15,9 @@ Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam an - `favicon.svg` - Icon shared by every page - `deploy` - Rsync deployment script - `/` - One folder per build, self-contained: `index.html`, `img/`, `dl/` - - `greenman/` - Green Man mask + - `greenman/` - Green Man mask (generated; do not edit by hand) +- `-src/` - Generator for a build whose page is generated. Excluded from deploy by the `*-src/` rule. + - `greenman-src/` - Green Man kit source; see its `README.md` ## Conventions @@ -23,7 +25,8 @@ Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam an - The index is a sister page to Kestrel's Hall (gamehall.kestrelsnest.social): the same dark ink / bone / gold tokens, the same serif stack, the same card and section structure. Keep them in step. - Every build page links back to the index with `` at its top and bottom (`.home` in `greenman/index.html`). - Downloads live in `/dl/`. Zip files there are part of the site, so `*.zip` is deliberately NOT in `.gitignore`. -- `greenman/index.html` is generated from the mask kit's own source (not in this repo). Hand edits to it are lost when the kit is regenerated; change the source and re-copy, then re-add the two `.home` back links, their CSS and the `` line and the description, canonical and Open Graph tags in its head. +- Everything in `greenman/` is generated by `greenman-src/`: run `uv run build.py` there and it rewrites `greenman/index.html`, `img/`, `dl/` and `og-image.jpg`. Never hand-edit `greenman/`; change the source and rebuild. The back links, favicon line, description and Open Graph tags are all written by `greenman-src/build_web.py`. +- `deploy` must never upload a generator. Any new source folder must be named `-src/` so the existing exclude covers it; check with `./deploy -n`. - Share previews: `og.png` at the root is a 1200x630 screenshot of the top of the index, so retake it when the index's first card changes. Each build has its own `og-image.jpg` (1200x630) in its folder and its own description and Open Graph tags. ## Adding a build diff --git a/README.md b/README.md index 366833d..26e5459 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Write-ups of things I've made, each with a guide and whatever files that project **Live:** https://builds.kestrelsnest.social -A static site with no build step. Each build is a self-contained folder; the top-level `index.html` links to them. +A static site. Each build is a self-contained folder; the top-level `index.html` links to them. The Green Man page is generated from `greenman-src/`, which stays in this repo and is never uploaded. ## Files @@ -17,6 +17,7 @@ greenman/ - Green Man mask index.html - The build and painting guides as one page img/ - Photos and part renders dl/ - Downloads: templates, guide PDFs, print files +greenman-src/ - Generator for everything in greenman/ (not deployed); see its README ``` ## Adding a build @@ -67,4 +68,4 @@ Set `DIR` in `deploy` to that folder's `www` directory. For this site it is `/va ./deploy ``` -The script rsyncs this folder to the server and deletes anything there that is no longer here. It skips the project's own files: the script itself, the two Markdown docs, and git and editor files. +The script rsyncs this folder to the server and deletes anything there that is no longer here. It skips the project's own files: the script itself, the two Markdown docs, git and editor files, and any generator folder (`*-src/`). diff --git a/deploy b/deploy index c727e4b..fe1f837 100755 --- a/deploy +++ b/deploy @@ -10,7 +10,8 @@ DRY="" cd "$(dirname "$0")" || exit 1 -# Everything in this folder is the site, apart from the project's own files. +# Everything in this folder is the site, apart from the project's own files +# and the generator folders (-src/), which never go to the server. # --delete removes files on the server that no longer exist here. rsync -avz --no-t --no-p --delete $DRY \ --exclude '.git/' \ @@ -20,6 +21,7 @@ rsync -avz --no-t --no-p --delete $DRY \ --exclude 'deploy' \ --exclude 'README.md' \ --exclude 'CLAUDE.md' \ + --exclude '*-src/' \ --exclude '*.swp' --exclude '*.swo' --exclude '*~' \ ./ ${HOST}:${DIR}/ STATUS=$? diff --git a/greenman-src/README.md b/greenman-src/README.md new file mode 100644 index 0000000..792dab7 --- /dev/null +++ b/greenman-src/README.md @@ -0,0 +1,52 @@ +# Green Man mask: kit source + +Everything published in `../greenman/` is generated from this folder. Edit here and rebuild; do not edit `../greenman/` by hand, because the next build replaces it. + +This folder is not part of the website. `../deploy` skips every folder whose name ends in `-src`. + +## Build + +```bash +uv run build.py # build, then copy the result into ../greenman +uv run build.py --no-publish # build into out/ only, to look before publishing +``` + +`uv` reads the dependency list at the top of `build.py` and sets up its own environment. The PDFs are rendered with Chromium through Playwright. If Playwright has no browser of its own it uses Google Chrome; to give it one, run `uv run --with playwright playwright install chromium` once. + +A build takes about ten seconds. It stops with an error if a print file fails the printability check or if the audit finds a step that disagrees with the parts layout. + +After a build, review `git diff` in `../greenman`, then run `../deploy` from the site root. + +## What a build does, in order + +1. `stl_build.py` writes the eight print files into `out/stl` and tests each one: watertight, flat on the bed, no layer starting in mid-air. The three files in `stl_src` that failed on the printer are run through the same test as a control and must fail it. +2. `audit.py` walks the assembly in step order and checks each step's text against where the parts actually sit. +3. `build_templates.py` makes the 1:1 cutting templates (4 pages). +4. `build_guides.py` makes the build guide and the painting guide as PDFs. +5. `build_web.py` makes the web page, with its head, share tags and the links back to the site index. +6. `build.py` zips the downloads and copies the page, `img/`, `dl/` and `og-image.jpg` into `../greenman`. + +## Where to change things + +| To change | Edit | +| --- | --- | +| Parts, quantities, step order, what is glued where | `manifest.py` | +| Shapes and dimensions of the base, leaves and strip | `geom.py` | +| Wording of either guide | `content.py` | +| Step drawings | `draw.py` | +| Template page layout | `build_templates.py` | +| Web page styling, title, description, share tags | `build_web.py` | +| PDF styling | `build_guides.py` | +| Generated print files (brow strip, acorns) | `stl_build.py` | +| README inside the kit zip | `assets/kit_README.txt` | + +`manifest.py` is the single source for parts and steps. The templates, both guides, the web page and the print set all read from it, so a count changed there changes everywhere. + +## Inputs kept here + +- `stl_src/` holds the hand-modelled print files (bark knot, twig, tendril, vein stamp) and the three control files. +- `assets/img/` holds the photos and the part renders shown in the guides. The part renders are pictures, not generated by the build, so re-render any whose print file changes. +- `assets/og-image.jpg` is the share image for the page. +- `assets/fonts/` holds the fonts for the PDFs, so they come out the same on any machine. + +`out/` and `work/` are build products and are not committed. diff --git a/greenman-src/assets/fonts/DejaVuSansMono.ttf b/greenman-src/assets/fonts/DejaVuSansMono.ttf new file mode 100644 index 0000000..538ee27 Binary files /dev/null and b/greenman-src/assets/fonts/DejaVuSansMono.ttf differ diff --git a/greenman-src/assets/fonts/Inter-Bold.otf b/greenman-src/assets/fonts/Inter-Bold.otf new file mode 100644 index 0000000..58a3807 Binary files /dev/null and b/greenman-src/assets/fonts/Inter-Bold.otf differ diff --git a/greenman-src/assets/fonts/Inter-Regular.otf b/greenman-src/assets/fonts/Inter-Regular.otf new file mode 100644 index 0000000..2d0bd1d Binary files /dev/null and b/greenman-src/assets/fonts/Inter-Regular.otf differ diff --git a/greenman-src/assets/fonts/Inter-SemiBold.otf b/greenman-src/assets/fonts/Inter-SemiBold.otf new file mode 100644 index 0000000..52c8455 Binary files /dev/null and b/greenman-src/assets/fonts/Inter-SemiBold.otf differ diff --git a/greenman-src/assets/fonts/InterDisplay-Bold.otf b/greenman-src/assets/fonts/InterDisplay-Bold.otf new file mode 100644 index 0000000..e2e7104 Binary files /dev/null and b/greenman-src/assets/fonts/InterDisplay-Bold.otf differ diff --git a/greenman-src/assets/fonts/README.txt b/greenman-src/assets/fonts/README.txt new file mode 100644 index 0000000..5a8aad6 --- /dev/null +++ b/greenman-src/assets/fonts/README.txt @@ -0,0 +1,4 @@ +Fonts used when the PDFs are rendered, bundled so the kit looks the same on any machine. + +Inter and Inter Display, by Rasmus Andersson: SIL Open Font License 1.1, https://rsms.me/inter/ +DejaVu Sans Mono: Bitstream Vera and DejaVu licences (free to use and redistribute), https://dejavu-fonts.github.io/ diff --git a/greenman-src/assets/img/acorn_full.png b/greenman-src/assets/img/acorn_full.png new file mode 100644 index 0000000..de7d4a9 Binary files /dev/null and b/greenman-src/assets/img/acorn_full.png differ diff --git a/greenman-src/assets/img/acorn_large_half.png b/greenman-src/assets/img/acorn_large_half.png new file mode 100644 index 0000000..2988b92 Binary files /dev/null and b/greenman-src/assets/img/acorn_large_half.png differ diff --git a/greenman-src/assets/img/acorn_small_half.png b/greenman-src/assets/img/acorn_small_half.png new file mode 100644 index 0000000..83c0701 Binary files /dev/null and b/greenman-src/assets/img/acorn_small_half.png differ diff --git a/greenman-src/assets/img/assembled_a.jpg b/greenman-src/assets/img/assembled_a.jpg new file mode 100644 index 0000000..e82d7ed Binary files /dev/null and b/greenman-src/assets/img/assembled_a.jpg differ diff --git a/greenman-src/assets/img/bark_knot.png b/greenman-src/assets/img/bark_knot.png new file mode 100644 index 0000000..b50920e Binary files /dev/null and b/greenman-src/assets/img/bark_knot.png differ diff --git a/greenman-src/assets/img/base_fit.jpg b/greenman-src/assets/img/base_fit.jpg new file mode 100644 index 0000000..6c02413 Binary files /dev/null and b/greenman-src/assets/img/base_fit.jpg differ diff --git a/greenman-src/assets/img/brow_strip.png b/greenman-src/assets/img/brow_strip.png new file mode 100644 index 0000000..629502f Binary files /dev/null and b/greenman-src/assets/img/brow_strip.png differ diff --git a/greenman-src/assets/img/finished.jpg b/greenman-src/assets/img/finished.jpg new file mode 100644 index 0000000..522c186 Binary files /dev/null and b/greenman-src/assets/img/finished.jpg differ diff --git a/greenman-src/assets/img/finished_front.jpg b/greenman-src/assets/img/finished_front.jpg new file mode 100644 index 0000000..68f55ef Binary files /dev/null and b/greenman-src/assets/img/finished_front.jpg differ diff --git a/greenman-src/assets/img/leaf_pile.jpg b/greenman-src/assets/img/leaf_pile.jpg new file mode 100644 index 0000000..5ae343e Binary files /dev/null and b/greenman-src/assets/img/leaf_pile.jpg differ diff --git a/greenman-src/assets/img/leaf_vein_stamp.png b/greenman-src/assets/img/leaf_vein_stamp.png new file mode 100644 index 0000000..be9b66a Binary files /dev/null and b/greenman-src/assets/img/leaf_vein_stamp.png differ diff --git a/greenman-src/assets/img/paint_bark.jpg b/greenman-src/assets/img/paint_bark.jpg new file mode 100644 index 0000000..f5ad64f Binary files /dev/null and b/greenman-src/assets/img/paint_bark.jpg differ diff --git a/greenman-src/assets/img/paint_base.jpg b/greenman-src/assets/img/paint_base.jpg new file mode 100644 index 0000000..5a475e2 Binary files /dev/null and b/greenman-src/assets/img/paint_base.jpg differ diff --git a/greenman-src/assets/img/paint_final.jpg b/greenman-src/assets/img/paint_final.jpg new file mode 100644 index 0000000..f5a810a Binary files /dev/null and b/greenman-src/assets/img/paint_final.jpg differ diff --git a/greenman-src/assets/img/paint_hi.jpg b/greenman-src/assets/img/paint_hi.jpg new file mode 100644 index 0000000..1cf3c93 Binary files /dev/null and b/greenman-src/assets/img/paint_hi.jpg differ diff --git a/greenman-src/assets/img/paint_mid.jpg b/greenman-src/assets/img/paint_mid.jpg new file mode 100644 index 0000000..4e552ad Binary files /dev/null and b/greenman-src/assets/img/paint_mid.jpg differ diff --git a/greenman-src/assets/img/paint_wash.jpg b/greenman-src/assets/img/paint_wash.jpg new file mode 100644 index 0000000..f256c89 Binary files /dev/null and b/greenman-src/assets/img/paint_wash.jpg differ diff --git a/greenman-src/assets/img/tendril_spiral.png b/greenman-src/assets/img/tendril_spiral.png new file mode 100644 index 0000000..9b08556 Binary files /dev/null and b/greenman-src/assets/img/tendril_spiral.png differ diff --git a/greenman-src/assets/img/twig_forked.png b/greenman-src/assets/img/twig_forked.png new file mode 100644 index 0000000..a06566d Binary files /dev/null and b/greenman-src/assets/img/twig_forked.png differ diff --git a/greenman-src/assets/kit_README.txt b/greenman-src/assets/kit_README.txt new file mode 100644 index 0000000..10bd258 --- /dev/null +++ b/greenman-src/assets/kit_README.txt @@ -0,0 +1,16 @@ +Green Man mask kit +================== +A half-mask of oak leaves, acorns and bark, worn behind your glasses. + +Start with GreenMan_build_guide.pdf. It lists everything to buy, cut and print. + +GreenMan_templates.pdf 1:1 cutting templates. Print at 100% and measure the 100 mm bar. +GreenMan_build_guide.pdf Materials, parts list, printing, and 11 assembly steps. +GreenMan_painting_guide.pdf Sealing and painting in 7 stages. +print_files/ 8 STL files. PLA, 0.2 mm layers, brim on, no supports. + +Print quantities: brow_strip 1, bark_knot 1, twig_forked 2, acorn_large_half 4, +acorn_small_half 2, acorn_full 2, tendril_spiral 4, leaf_vein_stamp 1 (a tool). + +Tested in use: the mask was built and worn for a full day at a renaissance faire. +The no-glasses base (templates page 2) has not been built yet. diff --git a/greenman-src/assets/og-image.jpg b/greenman-src/assets/og-image.jpg new file mode 100644 index 0000000..14d93f7 Binary files /dev/null and b/greenman-src/assets/og-image.jpg differ diff --git a/greenman-src/audit.py b/greenman-src/audit.py new file mode 100644 index 0000000..5585fdc --- /dev/null +++ b/greenman-src/audit.py @@ -0,0 +1,48 @@ +"""Audit: walk the assembly in order and report, for every part, which face it is on, what it is glued to, +what it lies over, and what later covers it. Then check each step's written instructions against those facts.""" +import re, manifest as M, content as C, geom as G +base = G.base_glasses()['outline'] +P = M.PLACEMENTS; order = list(M.STEPS); problems = [] +def name(p): return p['id'] +for k in order: + st = M.STEPS[k]; ps = M.step_placements(k) + print(f"\n== {order.index(k)}. {st['title']} (drawing: {st['view']} view)") + for p in ps: + if p['shape'] is None: continue + same = [q for q in P if q is not p and q['shape'] is not None and q['face'] == p['face']] + fp = p['footprint'] + under = [name(q) for q in same if q['seq'] < p['seq'] and fp is not None and q['shape'].intersection(fp).area > 1] + over_earlier = [name(q) for q in same if q['seq'] < p['seq'] and q['shape'].intersection(p['shape']).area > 15 and name(q) not in under] + covered_later = [name(q) for q in same if q['seq'] > p['seq'] and fp is not None and q['shape'].intersection(fp).area > 1] + on_base = fp.intersection(base).area / fp.area if fp is not None and fp.area else 0 + print(f" {name(p):16s} face={p['face']:6s} glue={p['glue']:7s} on-foam={on_base:4.0%} glued over: {under or '-'} lies across: {over_earlier or '-'} glue spot later covered by: {covered_later or '-'}") + # --- text checks + t = C.STEP[k]; text = re.sub(r'<[^>]+>', '', ' '.join(t['do']) + ' ' + t['check']) + faces = {p['face'] for p in ps if p['face'] in ('front', 'back') and p['part'] not in ('STRAP',)} + for f in faces: + if not re.search(rf'\b{f}\b', text): problems.append(f"step '{k}': parts go on the {f} but the text never says '{f}'") + wrong = {'front': 'back', 'back': 'front'} + for f in faces: + if len(faces) == 1 and re.search(rf'(to|on|onto) the ()?{wrong[f]}()? of the band', ' '.join(t['do'])): problems.append(f"step '{k}': text says {wrong[f]} of the band, parts are on the {f}") + view = 'back' if st['view'] in ('back', 'both') else 'front' + if faces and view not in faces: problems.append(f"step '{k}': drawing is a {view} view but its parts are on the {faces}") + glues = {p['glue'] for p in ps} - {'none', 'wire'} + gl = t['glue'].lower() + if 'contact' in glues and 'cement' not in gl: problems.append(f"step '{k}': uses contact cement but the header says '{t['glue']}'") + if 'hot' in glues and 'hot' not in gl: problems.append(f"step '{k}': uses hot glue but the header says '{t['glue']}'") + # numbers in the text vs geometry + for p in ps: + if p['part'] in 'LMS' and p['x'] and k in ('back', 'centre', 'front'): + if not re.search(rf"\b{abs(round(p['x']))} mm", text): problems.append(f"step '{k}': {name(p)} sits {abs(round(p['x']))} mm from centre; text does not give that distance") + a = abs(round(p['ang'])) + if a and not re.search(rf"\b{a}°", text): problems.append(f"step '{k}': {name(p)} leans {a} deg; text does not give that angle") + # chips = manifest counts + for part, n in C.step_counts(k).items(): + if part in C.SHORT and C.qty(part, n) not in C.step_parts(k): problems.append(f"step '{k}': chip for {part} missing") +# cross-document mentions of twigs / faces +allsrc = open(C.__file__).read() +for m in re.finditer(r"[^.'\n]{0,80}twig[^.'\n]{0,80}", allsrc): + if re.search(r'behind|backs? of', m.group(0)): problems.append('twig text still says behind/back: ' + m.group(0).strip()[:140]) +print('\n== text vs layout problems:', len(problems)) +for p in problems: print(' -', p) +print('manifest problems:', len(M.validate(verbose=False))) diff --git a/greenman-src/audit_run.py b/greenman-src/audit_run.py new file mode 100644 index 0000000..519ca6f --- /dev/null +++ b/greenman-src/audit_run.py @@ -0,0 +1,11 @@ +"""Run audit.py quietly and return its problems, for build.py. Run audit.py itself to read the full walk-through.""" +import contextlib, io, importlib + +def run(): + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import audit, manifest + importlib.reload(audit) + probs = list(audit.problems) + list(manifest.validate(verbose=False)) + print(f'audit: {len(probs)} problems') + return probs diff --git a/greenman-src/build.py b/greenman-src/build.py new file mode 100755 index 0000000..50ddae4 --- /dev/null +++ b/greenman-src/build.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python3 +# /// script +# requires-python = ">=3.11" +# dependencies = ["numpy", "scipy", "shapely", "trimesh", "manifold3d", "mapbox-earcut", "networkx", "rtree", "playwright"] +# /// +"""Build the whole Green Man kit and publish it into ../greenman. + + uv run build.py build everything, then copy the page into ../greenman + uv run build.py --no-publish build into out/ only + +Order matters: the print files are checked first because the guides quote the results.""" +import shutil, sys, zipfile +from pathlib import Path +from paths import ROOT, OUT, ASSETS, SITE + +STAMP = (2026, 1, 1, 0, 0, 0) # fixed date inside the zips, so an unchanged kit gives an unchanged zip + +def zip_write(path, entries): + with zipfile.ZipFile(path, 'w', zipfile.ZIP_DEFLATED) as z: + for name, src in sorted(entries): + zi = zipfile.ZipInfo(name, STAMP); zi.compress_type = zipfile.ZIP_DEFLATED; zi.external_attr = 0o644 << 16 + z.writestr(zi, Path(src).read_bytes()) + +def main(publish=True): + import stl_build + report = stl_build.build() + bad = {n: r['verdict'] for n, r in report.items() if r['verdict'].startswith('FAIL')} + assert not bad, f'print files failed the printability check: {bad}' + + import audit_run + problems = audit_run.run() + assert not problems, f'audit found problems: {problems}' + import build_templates, build_guides, build_web + pdfs = [build_templates.build(), build_guides.build('build'), build_guides.build('paint')] + build_web.build() + + dl = OUT / 'dl'; shutil.rmtree(dl, ignore_errors=True); dl.mkdir() + stls = sorted((OUT / 'stl').glob('*.stl')) + assert {p.name for p in stls} == set(report), 'out/stl holds files the report does not know about' + for p in pdfs: shutil.copy(p, dl) + zip_write(dl / 'GreenMan_print_files.zip', [(p.name, p) for p in stls]) + kit = 'GreenMan_mask_kit/' + zip_write(dl / 'GreenMan_mask_kit.zip', [(kit + Path(p).name, p) for p in pdfs] + [(kit + 'print_files/' + p.name, p) for p in stls] + [(kit + 'README.txt', ASSETS / 'kit_README.txt')]) + + if publish: + SITE.mkdir(exist_ok=True) + shutil.copy(OUT / 'index.html', SITE / 'index.html') + shutil.copy(ASSETS / 'og-image.jpg', SITE / 'og-image.jpg') + for sub, src in (('img', ASSETS / 'img'), ('dl', dl)): + shutil.rmtree(SITE / sub, ignore_errors=True); shutil.copytree(src, SITE / sub) + print(f'published to {SITE}') + +if __name__ == '__main__': + main(publish='--no-publish' not in sys.argv) diff --git a/greenman-src/build_guides.py b/greenman-src/build_guides.py new file mode 100644 index 0000000..b377093 --- /dev/null +++ b/greenman-src/build_guides.py @@ -0,0 +1,66 @@ +"""Build the two guide PDFs (US Letter portrait) from content.py.""" +import asyncio, os, shutil +import content as C, shot, fonts +from paths import OUT, ASSETS + +CSS = ''' +@page { size: 215.9mm 279.4mm; margin: 13mm 14mm 16mm 14mm; } +* { box-sizing: border-box; } +html { font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 9.4pt; line-height: 1.45; color: #1c1b19; } +body { margin: 0; } +h1 { font-family: "Inter Display", Inter, sans-serif; font-size: 34pt; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 4mm; font-weight: 700; } +h2 { font-size: 15pt; line-height: 1.2; margin: 0 0 3mm; padding-top: 3mm; border-top: 1.4pt solid #2f6b2f; font-weight: 700; break-after: avoid; } +h3 { font-size: 12pt; margin: 0; font-weight: 700; } +p { margin: 0 0 2.6mm; } ul, ol { margin: 0 0 2.6mm; padding-left: 5mm; } li { margin-bottom: 1.3mm; } +section { margin: 0 0 7mm; } +code { font-family: "DejaVu Sans Mono", monospace; font-size: 8pt; } +figure { margin: 0; } figcaption { font-size: 7.6pt; color: #6a675f; margin-top: 1mm; line-height: 1.3; } +svg { display: block; width: 100%; height: auto; } img { display: block; max-width: 100%; } +text { font-family: Inter, Helvetica, Arial, sans-serif; } +.cover { display: grid; grid-template-columns: 1fr 78mm; gap: 9mm; align-items: end; margin-bottom: 8mm; } +.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 8pt; font-weight: 700; color: #2f6b2f; margin: 0 0 3mm; } +.lead { font-size: 12pt; line-height: 1.4; color: #33312d; } +.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm 6mm; margin: 5mm 0 0; } +.facts dt { font-size: 7.4pt; text-transform: uppercase; letter-spacing: 0.08em; color: #6a675f; } .facts dd { margin: 0; font-weight: 600; } +.cover-photo img { border-radius: 2mm; } +.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; align-items: start; margin-bottom: 3mm; } +.photo img { border-radius: 1.5mm; } +.profile svg { max-height: 96mm; } +table.data { width: 100%; border-collapse: collapse; font-size: 8.5pt; margin: 0 0 3mm; } +table.data th { text-align: left; font-size: 7.4pt; text-transform: uppercase; letter-spacing: 0.06em; color: #6a675f; border-bottom: 0.8pt solid #1c1b19; padding: 1.2mm 2mm 1.2mm 0; } +table.data td { border-bottom: 0.3pt solid #cfccc3; padding: 1.3mm 2mm 1.3mm 0; vertical-align: top; } +table.data tr { break-inside: avoid; } +table.dense { font-size: 7.3pt; } table.dense td, table.dense th { padding-right: 1.4mm; } +.note { border-left: 2.2pt solid #c9a45c; background: #f7f3e8; padding: 2.6mm 3.5mm; font-size: 8.8pt; margin: 2mm 0 3mm; break-inside: avoid; } +.note.warn { border-left-color: #b3261e; background: #fbeeec; } +.keep, .cols, figure, .check, .why { break-inside: avoid; } +.step, .stage { display: grid; grid-template-columns: 88mm 1fr; gap: 6mm; padding: 4mm 0 2mm; border-top: 0.4pt solid #cfccc3; break-inside: avoid; } +.step .wide { grid-column: 1 / -1; max-width: 150mm; margin: 1mm auto 0; } +.stage { grid-template-columns: 66mm 1fr; } +.stage-pics { display: grid; gap: 3mm; } +.step-head { display: flex; align-items: baseline; gap: 2.5mm; flex-wrap: wrap; margin-bottom: 1.6mm; } +.num { display: inline-grid; place-items: center; min-width: 6.4mm; height: 6.4mm; border-radius: 3.2mm; background: #2f6b2f; color: #fff; font-weight: 700; font-size: 9pt; padding: 0 1.5mm; } +.meta { font-size: 7.8pt; color: #6a675f; flex-basis: 100%; } +.chips { margin: 0 0 2mm; } .chip { display: inline-block; border: 0.5pt solid #9a978e; border-radius: 3mm; padding: 0.2mm 2.2mm; font-size: 7.8pt; margin: 0 1.2mm 1.2mm 0; background: #fff; } +.why { font-size: 8.4pt; color: #45423c; margin: 0 0 2mm; } .why ul { margin: 0.6mm 0 0; } .why li { margin-bottom: 0.5mm; } +.check { font-size: 8.6pt; background: #eef4ea; border-radius: 1.2mm; padding: 1.8mm 2.6mm; } .check b { color: #2f6b2f; margin-right: 1.5mm; } +.stl-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1mm 2mm; margin: 0 0 3mm; } .stl-grid figcaption { text-align: center; font-size: 6.6pt; margin: 0; } +.leafstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5mm; } .leafstrip figcaption { text-align: center; } +''' + +def link_images(): + """The guides load photos from img/ beside the HTML, so mirror the assets there.""" + dst = OUT / 'img' + if dst.exists(): shutil.rmtree(dst) + shutil.copytree(ASSETS / 'img', dst) + +def build(kind): + body = C.construction() if kind == 'build' else C.painting() + title = 'Green Man mask · build guide' if kind == 'build' else 'Green Man mask · painting guide' + html = f'{title}{body}' + link_images(); src = str(OUT / f'_{kind}.html'); open(src, 'w').write(html) + out = str(OUT / f'GreenMan_{"build" if kind == "build" else "painting"}_guide.pdf') + asyncio.run(shot.go(src, out, footer=title)); return out + +if __name__ == '__main__': + for k in ('build', 'paint'): print(build(k)) diff --git a/greenman-src/build_templates.py b/greenman-src/build_templates.py new file mode 100644 index 0000000..cc86a2e --- /dev/null +++ b/greenman-src/build_templates.py @@ -0,0 +1,122 @@ +"""1:1 cutting templates, US Letter landscape (content also fits A4). Counts come from the manifest.""" +import os, asyncio +from collections import Counter +import geom as G, manifest as M, draw as D +from draw import f, path, line +from geom import TOP +import shot, fonts +from paths import OUT, WORK + +PW, PH = 279.4, 215.9 +FONT = "Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif" +CUT, GUIDE, RED, SCALE = '#111111', '#8a8a8a', '#b3261e', '#0057ff' + +def T(x, y, s, size=3.1, weight=400, fill='#111', anchor='start'): + return f'{s}' + +def lines(x, y, rows, size=3.1, lead=4.4, **kw): return ''.join(T(x, y+i*lead, r, size, **kw) for i, r in enumerate(rows)) + +def page(body, title, sub, n, total): + head = T(12, 14, title, 5.2, 700) + T(12, 20, sub, 3.1, 400, '#444') + T(PW-12, 14, f'Green Man mask kit · templates {n}/{total}', 2.8, 400, '#666', 'end') + bar = (f'' + + T(PW-72, PH-13, '100 mm. Measure this bar after printing. Print at 100% / actual size, never “fit to page”.', 2.6, 400, '#333', 'middle')) + return f'{head}{body}{bar}' + +def base_page(base, n, total): + ox, oy = PW/2, 124.0 + g = f'' + g += f'' + g += f'' + for sl, pt in zip(base['slits'], base['patches']): + g += f'' + g += f'' + g += T(34, -(TOP+62), 'optional top-strap slit (dotted, under the knot): decide in Stage C', 2.4, 400, '#666') + f'' + g += T(G.SLIT_X+18, -(TOP+30), 'strap slit', 2.6, 600, RED) + T(G.SLIT_X+18, -(TOP+26.3), '3 × 20 mm, cut through', 2.4, 400, RED) + T(G.SLIT_X+18, -(TOP+22.9), 'band and patch together', 2.4, 400, RED) + g += T(-G.SLIT_X-18, -(TOP+30), 'patch on the BACK', 2.6, 600, RED, 'end') + T(-G.SLIT_X-18, -(TOP+26.3), '30 × 36 mm of 2 mm foam', 2.4, 400, RED, 'end') + # where things land, lightly, so the template doubles as a placement map + g += f'' + T(30, -(G.STRIP_Y-1), 'brow strip', 2.4, 400, '#777', 'middle') + g += f'' + T(-12, -(G.KNOT_C[1]+12), 'knot', 2.4, 400, '#777', 'middle') + if base['kind'] == 'glasses': + for sg in (-1, 1): g += f'' + g += f'' + g += T(G.LENS_CX, 3, 'your lens', 2.6, 400, '#777', 'middle') + T(-G.LENS_CX, 3, 'no foam here', 2.6, 400, '#777', 'middle') + for sg in (-1, 1): g += f'' + g += T(G.FRAME_W/2+36, -(TOP-1), 'glasses arm', 2.4, 400, '#777') + else: + g += T(0, 24, 'eye holes 46 × 24 mm, 64 mm between centres', 2.6, 400, '#777', 'middle') + g += '' + if base['kind'] == 'glasses': + title, sub = 'Base, for glasses wearers · cut 1 from 6 mm EVA', 'Worn BEHIND the glasses. Drawn for a frame 140 mm wide; see the fit table to resize.' + notes = ['Paper fit first: cut this page on the solid line, hold it to your face, put your glasses on over it.', + '· The band lies flat on your forehead and the frame’s top bar sits along its lower edge.', + '· The nose strip drops between the nose pads; the pads still touch skin.', + '· Each cheek tab sits outside the frame; the arms pass over the tabs.', + 'Fold on the centre line to cut both halves at once.'] + table = [(125, 89), (130, 93), (135, 97), (140, 100), (145, 104), (150, 107)] + tb = T(12, 178, 'Frame width → print scale for THIS page only', 2.8, 700) + ''.join(T(12 + i*17, 183.5, f'{w} mm', 2.6, 600) + T(12 + i*17, 187.5, f'{p}%', 2.6) for i, (w, p) in enumerate(table)) + tb += T(12, 193, 'Scale brow_strip.stl by the same percentage. Leaf pages always print at 100%.', 2.5, 400, '#555') + else: + title, sub = 'Base, no glasses · cut 1 from 6 mm EVA', 'Same band, nose and cheeks as the glasses base, joined under the eyes.' + notes = ['Paper fit first: cut the outline and both eye holes from paper and hold it to your face.', + '· You see clearly through both holes without the edges touching your lashes.', + '· The band lies flat on your forehead; the nose strip follows the bridge of your nose.', + 'Eyes closer or wider than the holes: reprint this page a few percent smaller or larger.', + 'Fold on the centre line to cut both halves at once.'] + tb = (f'' + T(15, 180, 'UNTESTED VARIANT', 3.4, 700, RED) + + T(15, 185.5, 'Drawn from the glasses base but never built. Paper-fit before cutting foam.', 2.5, 400, RED)) + body = g + lines(12, 27, notes, 2.75, 4.0, fill='#222') + tb + return page(body, title, sub, n, total) + +def leaf_counts(): + """(size, variant) -> [as drawn, flipped], from the manifest; spares are added to variant 0 as drawn.""" + c = Counter() + for p in M.PLACEMENTS: + if p['part'] in 'LMST': c[(p['part'], p['variant'], bool(p['flip']))] += 1 + for k, n in M.SPARES.items(): c[(k, 1, False)] += n + return c + +def leaf_cell(size, variant, cx, base_y, c): + name = {'L': 'Large', 'M': 'Medium', 'S': 'Small', 'T': 'Tip'}[size] + ' ' + 'AB'[variant] + leaf = G.oak(size, variant); n0, n1 = c[(size, variant, False)], c[(size, variant, True)] + g = f'' + g += f'' + y = base_y + G.STEM_L + 6 + g += T(cx, y, name, 3.3, 700, anchor='middle') + box = lambda k: ''.join(f'' for i in range(k)) + g += T(cx, y+4.8, f'cut {n0 + n1}', 2.9, 600, anchor='middle') + box(n0 + n1) + return g, n0 + n1 + +def leaf_pages(n0, total): + c = leaf_counts(); ml = M.make_list(); pages = [] + # page: large + body, tot = '', 0 + for v, cx in ((0, 78), (1, 170)): + g, k = leaf_cell('L', v, cx, 148, c); body += g; tot += k + assert tot == ml['L']['total'] + body += lines(214, 60, ['Large leaves make the tall back', 'of the crown.', '', 'Print on card stock, cut the two', 'shapes out, trace onto 2 mm foam.', + 'Turn the card over for every', 'other leaf, so they are not all', 'identical.', '', 'Dashed lines: where the veins go', '(stamp or score them later).', + '', 'The stem is part of the leaf.', 'Do not cut it off.'], 2.75, 4.1, fill='#222') + pages.append(page(body, f'Large oak leaf, 95 mm · cut {ml["L"]["total"]} from 2 mm EVA', 'Tick a box for each one you cut. These counts are everything the mask uses: nothing is left over.', n0, total)) + # page: medium, small, tip, patch + body, chk = '', Counter(); xs = {('M', 0): 34, ('M', 1): 92, ('S', 0): 142, ('S', 1): 184, ('T', 0): 220, ('T', 1): 248} + for (size, v), cx in xs.items(): + g, k = leaf_cell(size, v, cx, {'M': 122, 'S': 100, 'T': 82}[size], c); body += g; chk[size] += k + for k in 'MST': assert chk[k] == ml[k]['total'], (k, chk[k], ml[k]['total']) + px, py = 205, 132 + body += f'' + T(px+G.PATCH_W/2, py+G.PATCH_H/2-1, 'Strap patch', 3.0, 700, anchor='middle') + T(px+G.PATCH_W/2, py+G.PATCH_H/2+3.5, 'cut 2', 2.7, anchor='middle') + sp = ', '.join(f'{n} {"medium" if k == "M" else "small"}' for k, n in M.SPARES.items()) + body += lines(12, 172, [f'Counts include {sp} as spares. Keep the spares unsealed and unpainted: they are your repair kit.', + 'Medium: 6 for the front row of the crown, 2 for the cheeks. Small: 4 for the cheeks, 1 for the nose. Tip: one on the end of each tendril.'], 2.75, 4.2, fill='#222') + pages.append(page(body, f'Medium, small and tip leaves · cut {ml["M"]["total"]} + {ml["S"]["total"]} + {ml["T"]["total"]} from 2 mm EVA, plus 2 strap patches', 'Tick a box for each one you cut.', n0+1, total)) + return pages + +def build(out=str(OUT / 'GreenMan_templates.pdf')): + total = 4 + pages = [base_page(G.base_glasses(), 1, total), base_page(G.base_plain(), 2, total)] + leaf_pages(3, total) + html = ('' + ''.join(pages) + '') + src = str(WORK / 'templates.html'); open(src, 'w').write(html) + asyncio.run(shot.go(src, out)); return out + +if __name__ == '__main__': + print(build()) diff --git a/greenman-src/build_web.py b/greenman-src/build_web.py new file mode 100644 index 0000000..a53685f --- /dev/null +++ b/greenman-src/build_web.py @@ -0,0 +1,116 @@ +"""Web page version of both guides, plus downloads, as it is published on the builds site. +Photos, PDFs and the zips sit beside the page in img/ and dl/.""" +import re, importlib +import content as C +from paths import OUT + +SITE_NAME = "Kestrel's Builds" +URL = 'https://builds.kestrelsnest.social/greenman/' +DESCRIPTION = 'A half-mask of oak leaves, acorns and bark, built to be worn with glasses. Templates, print files, a build guide and a painting guide, free to download.' +OG_DESCRIPTION = 'A half-mask of oak leaves, acorns and bark, built to be worn with glasses. Everything you need to make your own.' +OG_ALT = 'A Green Man half-mask worn with glasses: a crown of painted oak leaves above a bark brow ridge, with acorns at the temples and a leaf over the nose.' + +CSS = ''' +/* Same ink, bone and gold as the builds index and Kestrel's Hall, and the same serif. Drawings stay on light paper with sans labels. + layout: one reading column of guide text; each step is a drawing beside its instructions, stacking on phones */ +:root { --bg:#14181a; --surface:#1c2124; --fg:#e6dfcf; --muted:#a9a494; --line:#2c3236; --accent:#d2a94a; --accent-fg:#14181a; --bark:#d2a94a; + --note:#211f18; --warn:#2e1b19; --warn-fg:#f0988c; --ok:#1a231d; --paper:#ebe6d9; --paper-fg:#33382f; + --display:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; --body:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; + --sans:"Helvetica Neue",Helvetica,Arial,sans-serif; --mono:ui-monospace,"SF Mono",Menlo,monospace; } +html { background: var(--bg); color-scheme: dark; } +* { box-sizing: border-box; } +body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; } +.wrap { max-width: 1060px; margin: 0 auto; padding-block: 28px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } +h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; line-height: 1.12; margin: 0; } +h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: 0.01em; } +h2 { font-size: 1.6rem; padding-top: 18px; border-top: 1px solid var(--accent); margin-bottom: 12px; } +h3 { font-size: 1.3rem; font-weight: 500; } +p { margin: 0 0 12px; max-width: 68ch; } ul, ol { margin: 0 0 12px; padding-left: 1.3em; max-width: 68ch; } li { margin-bottom: 6px; } +a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } b, strong { font-weight: 600; } code { font-family: var(--mono); font-size: 0.86em; } +section { margin: 0 0 40px; min-width: 0; } +figure { margin: 0; min-width: 0; } figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; line-height: 1.35; } +img { border-radius: 6px; display: block; height: auto; max-width: 100%; } +.fig svg, .leafstrip svg { display: block; width: 100%; height: auto; background: var(--paper); border-radius: 6px; } +.fig svg text, .leafstrip svg text { font-family: var(--sans); } +nav.top { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; } +nav.top a { text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 7px 14px; border-radius: 999px; font-size: 0.92rem; } +nav.top a:hover, nav.top a:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; text-decoration: none; } +.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; align-items: end; margin-bottom: 40px; } +.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--accent); margin: 0 0 10px; } +.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin-top: 14px; } +.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 20px 0 0; } +.facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); } .facts dd { margin: 0; font-weight: 600; } +.guide-start { margin-top: 72px; } +.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; margin-bottom: 14px; } +.tw { overflow-x: auto; margin: 0 0 14px; } +table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; } +table.data th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1.5px solid var(--fg); padding: 6px 12px 6px 0; white-space: nowrap; } +table.data td { border-bottom: 1px solid var(--line); padding: 7px 12px 7px 0; vertical-align: top; } +table.dense { font-size: 0.8rem; min-width: 760px; } +.note { border-left: 3px solid var(--bark); background: var(--note); padding: 12px 16px; font-size: 0.93rem; margin: 10px 0 14px; border-radius: 0 6px 6px 0; } +.note.warn { border-left-color: var(--warn-fg); background: var(--warn); } .note.warn b { color: var(--warn-fg); } +.step, .stage { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; padding: 22px 0 10px; border-top: 1px solid var(--line); } +.step .wide { grid-column: 1 / -1; max-width: 640px; } +.stage-pics { display: grid; gap: 14px; align-content: start; } +.step-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } +.num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.85rem; padding: 0 6px; font-family: var(--sans); } +.meta { font-size: 0.82rem; color: var(--muted); flex-basis: 100%; } +.chips { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; } .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 1px 10px; font-size: 0.8rem; } +.why { font-size: 0.88rem; color: var(--muted); margin: 0 0 10px; } .why ul { margin: 4px 0 0; } +.check { font-size: 0.9rem; background: var(--ok); border-radius: 6px; padding: 9px 12px; max-width: 68ch; } .check b { color: var(--accent); margin-right: 6px; } +.stl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 0 0 14px; } +.stl-grid figure { background: var(--paper); border-radius: 6px; padding: 4px 4px 8px; } .stl-grid figcaption { text-align: center; color: var(--paper-fg); margin: 0; font-size: 0.72rem; } +.leafstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .leafstrip figcaption { text-align: center; } +.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; } +.dl .dlbtn { text-decoration: none; text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; } +.dl .dlbtn:hover, .dl .dlbtn:focus-visible { border-color: var(--accent); outline: none; text-decoration: none; } .dl .dlbtn:hover b, .dl .dlbtn:focus-visible b { color: var(--accent); } +.dl .dlbtn b { font-family: var(--display); font-size: 1.2rem; font-weight: 500; } .dl .dlbtn span { font-size: 0.82rem; color: var(--muted); } +.home { margin: 0 0 24px; font-size: 0.95rem; } .home a { text-decoration: none; } .home a:hover, .home a:focus-visible { text-decoration: underline; } +.home.foot { margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--line); } +@media (max-width: 760px) { .cover, .cols, .step, .stage { grid-template-columns: minmax(0, 1fr); } .cover-photo { max-width: 360px; } .leafstrip { grid-template-columns: repeat(5, minmax(0, 1fr)); } } +''' + +def wrap_tables(h): return h.replace('', '') + +def build(out=str(OUT / 'index.html')): + importlib.reload(C) + build_html = C.construction(); paint_html = C.painting().replace('
', '
').replace('

Green Man mask

', '

Painting the mask

') + dls = [('GreenMan_mask_kit.zip', 'Whole kit', 'Templates, both guides, and the 8 print files in one zip'), ('GreenMan_templates.pdf', 'Templates', '4 pages, 1:1, US Letter or A4'), + ('GreenMan_build_guide.pdf', 'Build guide', 'Printable, for the workbench'), ('GreenMan_painting_guide.pdf', 'Painting guide', 'Printable'), ('GreenMan_print_files.zip', 'Print files', '8 STL files, no supports needed')] + downloads = ('

Downloads

' + ''.join(f'{t}{d}' for f, t, d in dls) + '
') + nav = '' + body = build_html + i = body.index('
') + len('
') + body = body[:i] + nav + downloads + '
' + body[i:] + home = '

\u2190 Kestrel\u2019s Builds

' + foot = '

\u2190 All builds at Kestrel\u2019s Builds

' + head = f''' + + + + +Green Man Mask Kit + + + + + + + + + + + + + + + + + +''' + page = f'{head}
{home}{wrap_tables(body)}{wrap_tables(paint_html)}{foot}
\n\n\n\n' + page = re.sub(r'([^', r'\2', page) + open(out, 'w', encoding='utf-8').write(page); return out + +if __name__ == '__main__': + print(build()) diff --git a/greenman-src/content.py b/greenman-src/content.py new file mode 100644 index 0000000..61ce1a0 --- /dev/null +++ b/greenman-src/content.py @@ -0,0 +1,419 @@ +"""Guide content as HTML fragments, shared by the PDF build and the web page. Counts, order and drawings come from the manifest.""" +import json +from collections import Counter, OrderedDict +import geom as G, manifest as M, draw as D +from geom import TOP + +IMG = 'img/' +from paths import WORK +REPORT = json.load(open(WORK / 'stl_report.json')) +ML = M.make_list() +STEPKEYS = list(M.STEPS) +ASSEMBLY = [k for k in STEPKEYS if not M.STEPS[k].get('prep')] + +def photo(name, cap, cls=''): return f'
{cap}
{cap}
' +def fig(svg, cap='', cls=''): return f'
{svg}' + (f'
{cap}
' if cap else '') + '
' +def ul(items, cls=''): return f'
    ' + ''.join(f'
  • {i}
  • ' for i in items) + '
' +def ol(items): return '
    ' + ''.join(f'
  1. {i}
  2. ' for i in items) + '
' +def table(head, rows, cls='data'): return f'' + ''.join(f'' for h in head) + '' + ''.join('' + ''.join(f'' for c in r) + '' for r in rows) + '
{h}
{c}
' + +PLACE = {'strap': 'strap', 'back': 'crown, outer (on the back)', 'centre': 'crown, centre (on the front)', 'front': 'crown, front row', 'cheeks': 'cheeks', 'nose': 'nose', 'tendrils': 'tendril ends', + 'clusters': 'temple clusters', 'hang': 'hanging beside the cheeks', 'twigs': 'in the crown, between the leaf rows', 'strip': 'front of the band', 'knot': 'centre of the band'} +def where(pid): + c = Counter(p['step'] for p in M.PLACEMENTS if p['part'] == pid for _ in range(p.get('count', 1))) + if pid == 'BASE': return 'everything is glued to it' + if pid == 'PATCH': return 'back of the band, one behind each strap slit' + if pid == 'SPIRAL': return f'{c["tendrils"]} on the lower cheek tabs, 2 per side' + if pid == 'STRAP': return 'through both slits and around the back of the head' + if pid == 'WIRE': return 'one for each hanging acorn' + txt = ', '.join(f'{n} {PLACE[s]}' for s, n in c.items()) + return txt + (f', {M.SPARES[pid]} spare' if pid in M.SPARES else '') + +def parts_table(): + rows = [(f'{v["total"]}', v['name'], v['src'], where(k)) for k, v in ML.items()] + return table(['Qty', 'Part', 'Made from', 'Where it goes'], rows) + +def leaf_total(): return sum(ML[k]['total'] for k in 'LMST') +def print_total(): return sum(v['total'] for v in ML.values() if v['kind'] == 'print') + +def print_table(): + notes = {'brow_strip.stl': 'Prints flat; heat-formed to the forehead later. PLA only.', 'bark_knot.stl': 'Flat back.', 'twig_forked.stl': 'Flat underside along its whole length.', + 'acorn_large_half.stl': 'Lies on its flat back.', 'acorn_small_half.stl': 'Lies on its flat back.', 'acorn_full.stl': 'Stands on a 13 mm flat, stem up. Use a brim.', + 'tendril_spiral.stl': 'Flat underside along its whole length.', 'leaf_vein_stamp.stl': 'A tool for the leaves. Print it first.'} + rows = [(f'{n}', f'{r["qty"]}', ' × '.join(f'{v:g}' for v in r['extents']) + ' mm', 'none', notes[n]) for n, r in REPORT.items()] + return table(['File', 'Print', 'Size', 'Supports', 'Notes'], rows) + +def filament_g(): return round(sum(r['volume_cm3']*r['qty'] for r in REPORT.values()) * 1.24 * 0.75 / 5) * 5 # solid volume x PLA density x typical fill +def foam2_cm2(): + a = sum(G.oak(k, 0).minimum_rotated_rectangle.area * ML[k]['total'] for k in 'LMST') + 2*G.PATCH_W*G.PATCH_H + return round(a*1.15/100/50)*50 + +# --------------------------------------------------------------------------- diagrams drawn by hand +def side_profile(): + """Two sections seen from the wearer's left (front of the mask to the right). Left panel: on the centre line. + Right panel: 30 mm to one side, where a front-row leaf stands and the outer large leaf is glued to the rear face.""" + Y = lambda y: 124 - (y - TOP) + def face(ox): + f = f'' + return f + f'' + def band(ox, nose=True): + b = f'' + if nose: b += f'' + return b + def blade(ox, x0, y0, x1, y1, w, fill): # a leaf or twig seen edge-on: a thin bar from (x0,y0) up to (x1,y1) + return f'' + strip = lambda ox: f'' + glasses = lambda ox: f'' + def lab(x, y, tx, ty, text, anchor='start'): + return f'{text}' + title = lambda ox, t: f'{t}' + s = 'Two side views through the mask' + # ---------------- panel A: on the centre line + o = 0 + s += title(o, 'On the centre line') + face(o) + band(o) + s += f'' # centre leaf stem, on the FRONT + s += blade(o, 48, TOP+55, 20, TOP+150, 2.2, '#2f6b2f') # its blade, raked back over the head + s += f'' # knot, over the stem + s += strip(o) + glasses(o) + s += f'' + s += lab(o+30, Y(TOP+122), o+66, 4, 'centre large leaf') + s += lab(o+49, Y(TOP+48), o+72, 20, 'its stem: on the FRONT,') + f'under the knot' + s += lab(o+62, Y(TOP+56), o+76, 58, 'knot') + lab(o+53, Y(TOP+16), o+72, 100, 'brow strip') + lab(o+45, Y(TOP+8), o+72, 112, 'foam band') + s += lab(o+57, 140, o+72, 140, 'glasses') + lab(o+51, 168, o+68, 172, 'nose leaf') + lab(o+39, 90, o+16, 150, 'forehead', 'end') + # ---------------- panel B: 30 mm to one side + o = 150 + s += title(o, '30 mm to one side') + face(o) + s += f'' # outer large leaf stem, on the BACK + s += blade(o, 39, TOP+54, 12, TOP+140, 2.2, '#245a26') + s += band(o, nose=False) + s += f'' # twig, flat on the FRONT + s += f'' + s += f'' # front-row leaf stem, in FRONT of the twig + s += blade(o, 51, TOP+41, 41, TOP+110, 2.2, '#4c8a3c') + s += strip(o) + glasses(o) + s += lab(o+20, Y(TOP+116), o+62, 2, 'outer large leaf: stem on the BACK') + s += lab(o+38, Y(TOP+104), o+68, 16, 'twig: flat side on the FRONT') + s += lab(o+45, Y(TOP+84), o+72, 30, 'front-row leaf: on the FRONT,') + f'in front of the twig' + s += lab(o+53, Y(TOP+16), o+72, 100, 'brow strip') + lab(o+45, Y(TOP+8), o+72, 112, 'foam band') + lab(o+57, 140, o+72, 140, 'glasses') + return s + '' + +def strap_section(): + """Seen from above, as built: the strap comes from behind the head, wraps the outer edge onto the FRONT of the band, + runs inward to the slit, and is fed through from front to back. The tail comes out on the back, turns outward, and is + glued to the underside of the strap (the side facing the head) just past the edge.""" + s = 'Strap anchor seen from above' + s += '' + s += '' + # strap (dark): from behind the head, around the outer edge, inward along the front, up through the slit + s += '' + # tail (grey): out of the slit on the back, outward along the back face, then up against the underside of the strap + s += '' + s += '' + s += '' + T = lambda x, y, t, a='start', c='#222', w=400: f'{t}' + L = lambda d, c='#888': f'' + s += T(20, 42, 'BACK (against your face)', c='#666') + T(20, 70, 'FRONT', c='#666') + T(60, 57.4, '6 mm band', 'middle', '#444') + s += T(98, 47, '2 mm patch', 'end', '#444') + L('M99 46 L104 50') + s += T(84, 90, 'slit, 20 mm in from the edge', 'end', '#c8321e', 600) + L('M86 88.5 L120.5 62', '#c8321e') + s += T(153, 60, 'outer edge of the band', c='#444') + s += T(234, 48, 'strap, from the back of your head', 'end') + s += T(96, 6, 'tail (grey): comes out of the slit on the back and turns outward', 'middle', '#555') + L('M130 8 L132 46.3', '#777') + s += T(150, 20, 'glue the tail to the underside of the strap', 'middle', '#c8321e') + L('M160 22 L161 41.6', '#c8321e') + s += T(152, 84, 'the acorn cluster later covers this run', 'start', '#6b4a2b') + L('M151 82 L141 76', '#6b4a2b') + return s + '' + +# --------------------------------------------------------------------------- construction guide +STEP = { + 'strap': dict(time='25 min + cure', glue='Contact cement for the patches, hot glue for the tails', do=[ + 'Cut two 30 × 36 mm patches from 2 mm foam (outline on template page 4). Lay the paper base template on the formed foam base and push a pin through both ends of each red slit to mark them on the foam.', + 'Cement a patch to the back of the band, centred over each pair of pin marks. Coat both surfaces, wait until touch-dry, press. Let it cure at least 30 minutes.', + 'Cut each slit through band and patch together with a fresh blade: two parallel cuts 20 mm long and 3 mm apart, then lift out the sliver. Cutting through both layers at once is what keeps the slit from stretching.', + 'Bring the end of the elastic around the outer edge of the band onto the front, and feed it through the slit from front to back. Pull about 50 mm through. The tail comes out on the back; turn it outward and hot-glue it to the underside of the strap, the side that faces your head, just past the edge of the band. Glue elastic to elastic and leave the foam free of glue.', + 'Do one side, put the mask and your glasses on, pull the strap snug around your head, mark it, then do the other side. Go slightly snug: elastic relaxes over a few hours. This sets the strap length for good; the ends are about to be covered.'], + check='Mask stays put when you shake your head. Glasses go on over it and come off without dragging it.'), + 'strip': dict(time='15 min', glue='Contact cement', do=[ + 'The brow strip was heat-formed to the curve of the band in Stage E. Hold it in place dry on the front of the band first: centred, lower edge about 5 mm above the lower edge of the band, each end stopping just short of a strap slit.', + 'Brush contact cement on the back of the strip and on the band where it sits. Wait about 10 minutes until both are touch-dry.', + 'Press on from the centre outward, backing the band with your other hand. You get one try; contact cement grabs at once.'], + check='No edge of the strip lifts when you flex the band gently, and neither end covers a strap slit.'), + 'clusters': dict(time='15 min', glue='Contact cement; hot glue where acorn meets acorn', do=[ + 'One cluster per temple, covering the 20 mm of strap that crosses the front of the band. Contact cement holds on the elastic as well as on the foam.', + 'Acorn 1 (large): flat on the band over the strap, cap pointing up and slightly out, with its inboard edge on bare foam. Acorn 2 (large): above and inboard of it, tilted the other way, leaning on acorn 1. Acorn 3 (small): outboard, bridging the two.', + 'Keep the whole cluster at least 4 mm above the lower edge of the band. The glasses arm rests just below.', + 'Press each one with your hand behind the band.'], + check='With glasses on, each arm passes under its cluster without touching it.'), + 'centre': dict(time='10 min', glue='Hot glue, on the stem only', do=[ + 'Rest the mask face-up over a rolled towel. The three centre leaves glue by their stems to the front of the band, in the upper middle where the knot will go later.', + 'Leaf 1 stands upright on the centre line with its blade starting level with the top edge of the band. It is the tallest leaf on the mask.', + 'Leaves 2 and 3 go 17 mm to each side of it, leaning out 10°, and about 6 mm lower.', + 'Hold each leaf raked back about 30° over where your head will be until its glue has cooled, because this is the only chance to set the lean.', + 'If you fitted the optional top strap, glue the stem of leaf 1 just to one side of it.', + 'From here on, never rest the mask on its crown. Lay it over a rolled towel, or hang it by the strap.'], + check='Three large leaves stand in a narrow fan at the centre, raked back, with their stems side by side on the front of the band.'), + 'back': dict(time='10 min', glue='Hot glue, on the stem only', do=[ + 'Turn the mask face-down over the rolled towel, with the centre leaves hanging clear of it. The four outer large leaves glue by their stems to the back of the band, leaf faces toward the front.', + 'Leaves 1 and 2: one 36 mm to each side of the centre line, leaning out 22°. Set them so the leaf blade starts level with the top edge of the band.', + 'Leaves 3 and 4: 52 mm each side, leaning out 30°, and 10 mm lower on the band.', + 'Keep every stem inboard of the strap patches. Rake each leaf back to match the centre three and hold it until the glue has cooled. Their inner edges tuck behind the edges of the centre leaves.'], + check='From the front, seven large leaves read as one fan: a tall centre leaf with three stepping down on each side.'), + 'twigs': dict(time='10 min', glue='Contact cement on the band, a dab of hot glue higher up', do=[ + 'Mask face-up over the rolled towel. The twigs are flat on one side, and that flat side goes against the foam with the bark facing out.', + 'Each twig stands on the front of the band, its thick end just above the brow strip and about 30 mm out from the centre line, beside the knot. Roughly 22 mm of it lies on the band.', + 'Cement that lower part to the band. Above the band the twig lies against the front of the large leaves, so add one dab of hot glue where it touches a leaf to stop it rattling.', + 'The forked ends should reach up between the leaves. The front row goes on later and covers the thick ends.'], + check='Both twigs sit flat on the band, roughly mirrored, with the bark side facing forward.'), + 'knot': dict(time='5 min + tack time', glue='Contact cement', do=[ + 'Turn the mask face-up again. The knot sits on the front of the band at the centre line, on top of the three centre stems, with its lower edge touching the top edge of the brow strip. It overhangs the top edge of the band by about 14 mm, which is intended.', + 'Brush contact cement on the back of the knot and on the stems and foam it will cover. Wait until touch-dry.', + 'Press it on with your other hand flat behind the band. No stems are glued to the back at the centre, so the band can be backed properly.'], + check='Knot and strip read as one piece of wood, and the three centre stems are hidden.'), + 'front': dict(time='15 min', glue='Hot glue, on the stem only', do=[ + 'Six medium leaves, stems glued to the front of the band in the space directly above the brow strip, either side of each twig.', + 'Leaves 1 and 2: either side of the knot, about 24 mm from the centre line, leaning out 12°. Their inner lobes rest on the sides of the knot; the middle of the knot stays visible between them.', + 'Leaves 3 and 4: 42 mm out, leaning 27°, their blades crossing in front of the twigs. Leaves 5 and 6: 58 mm out, leaning 42°, with their blades resting on the inner edge of each acorn cluster.', + 'Hold each one leaning back toward the large leaves until its glue has cooled. Where a leaf rides up over the knot or an acorn it will stand a little proud, which looks natural.'], + check='From the side there is little or no daylight between the front row and the large leaves behind it.'), + 'hang': dict(time='10 min', glue='Hot glue', do=[ + 'Each full acorn hangs from an 8 cm length of fishing line. Thin wire works just as well. Tie one end around the stem of the acorn, tight under the cap, and lock the knot with a drop of hot glue. With wire, wrap it twice and twist it closed.', + 'Hot-glue the last 10 mm of the free end to the front of the cheek tab, pointing up, on the outer half of the tab about 12 mm below the lower edge of the band. That is just under where the glasses arm rests.', + 'Lead the line downward and outward from there, so the acorn hangs past the outer edge of the cheek tab, level with the lens. Fishing line lets the acorn swing; wire can be bent to hold it in one place.'], + check='The anchor holds when you tug the acorn. With glasses on, the line does not touch the arm.'), + 'tendrils': dict(time='15 min', glue='Hot glue for the tip leaves, contact cement for the tendrils', do=[ + 'On the bench first: hot-glue the stem of one tip leaf to the curled end of each of the four tendrils.', + 'Each cheek tab takes two tendrils side by side on the front of its lower third, each glued flat by the first 8 mm of its straight end. Flip the acorn up out of the way while you work.', + 'Tendril 1 goes on the inner half of the tab and curls toward the nose. Tendril 2 goes on the outer half and curls toward the ear. They fan apart and must not cross. Each one is rigid and 7 mm thick, so a crossed tendril cannot sit flat.'], + check='All four hang freely below the cheek tabs, none crosses another, and none touches a lens.'), + 'cheeks': dict(time='10 min', glue='Hot glue, on the stem only', do=[ + 'Three leaves per side, tips down, stems side by side across the top of the cheek tab. Keep the tops of the stems just below the line the glasses arm rests on. Keep the acorn flipped up until all three are on.', + 'Leaf 1 (medium): centre of the tab, straight down.', + 'Leaf 2 (small): toward the lens, straight down. Its blade must stay off the glass.', + 'Leaf 3 (small): toward the ear, tip angled outward about 8°. Its stem and the stem of leaf 1 go over the line and hide the anchor.', + 'Let the acorn drop. It hangs in front of the outer lobes of leaves 1 and 3. The tendrils hang out below all three.'], + check='Glasses on: both arms sit flat, no cheek leaf shows through a lens, and each acorn swings freely.'), + 'nose': dict(time='5 min', glue='Hot glue, on the stem only', do=[ + 'One small leaf, tip down, on the front of the nose strip of the base. The stem glues at the very top of the nose strip and runs up under where the bridge of the glasses sits.', + 'The leaf is wider than the nose strip, so its side lobes hang free and show at the inner corners of the lenses, as in the photos. If that bothers you, trim the two widest lobes.', + 'Press it to follow the curve of your nose while the glue is warm.'], + check='Glasses still seat on your nose as they did before. If they ride up, thin the stem with a blade.'), +} + +SHORT = {'L': ('large leaf', 'large leaves'), 'M': ('medium leaf', 'medium leaves'), 'S': ('small leaf', 'small leaves'), 'T': ('tip leaf', 'tip leaves'), + 'STRIP': ('brow strip',)*2, 'KNOT': ('bark knot',)*2, 'TWIG': ('twig', 'twigs'), 'AL': ('large acorn half', 'large acorn halves'), 'AS': ('small acorn half', 'small acorn halves'), + 'AF': ('full acorn', 'full acorns'), 'SPIRAL': ('tendril', 'tendrils'), 'STRAP': ('elastic strap',)*2, 'WIRE': ('hanging line', 'hanging lines'), 'PATCH': ('strap patch', 'strap patches')} +def qty(k, n): return f'{n} {SHORT[k][0 if n == 1 else 1]}' +def step_counts(key): + c = Counter() + for p in M.step_placements(key): c[p['part']] += p.get('count', 1) + return OrderedDict((k, n) for k, n in c.items() if n) +def step_parts(key): return ''.join(f'{qty(k, n)}' for k, n in step_counts(key).items()) +def piles(): + """Where each cut leaf goes, straight from the manifest.""" + names = {'back': 'crown, outer', 'centre': 'crown, centre', 'front': 'front row', 'cheeks': 'cheeks', 'nose': 'nose', 'tendrils': 'tendrils'} + out = [f'{names[k]} ({", ".join(qty(p, n) for p, n in step_counts(k).items() if p in "LMST")})' for k in names] + return ', '.join(out) + f', spares ({", ".join(qty(p, n) for p, n in M.SPARES.items())})' + +def step_block(key, n): + st = M.STEPS[key]; t = STEP[key]; done = STEPKEYS[:STEPKEYS.index(key)] + view = 'back' if st['view'] in ('back', 'both') else 'front' + svg = D.scene(view, done=done, hl=key, numbers=True) + cap = ('Back view (the side that touches your face). ' if view == 'back' else 'Front view. ') + 'Red outline: glued in this step. Numbers: the order. Grey: already on.' + why = ''.join(f'
  • After {M.STEPS[d]["title"].lower()}: {r}.
  • ' for d, r in st['after']) + body = f'
    {n}

    {st["title"]}

    {t["time"]} · {t["glue"]}
    ' + body += f'
    {step_parts(key)}
    ' + ol(t['do']) + if why: body += f'
    Why now
      {why}
    ' + body += f'
    Before moving on {t["check"]}
    ' + extra = fig(strap_section(), 'The strap anchor seen from above. The elastic loops around the 20 mm of foam between the slit and the edge, and the tail is glued to the strap behind the band.', 'wide') if key == 'strap' else '' + return f'
    {fig(svg, cap, "stepfig")}
    {body}
    {extra}
    ' + +def construction(): + H = [] + H.append(f'''

    Build guide

    Green Man mask

    +

    A half-mask of oak leaves, acorns and bark, built for people who wear glasses. The structure is EVA foam with a handful of 3D-printed details, and your glasses go on over it.

    +
    Hands-on time
    about 8 hours over 3 evenings
    Printing
    {print_total()} small parts, printed unattended
    +
    Foam
    1 base, {leaf_total()} leaves
    Skills
    craft knife, heat gun, contact cement
    +{photo("finished", "The finished mask, worn with a knitted hood.", "cover-photo")}
    ''') + H.append('''

    Tested in use

    +

    This mask was built and then worn for a full day at a renaissance faire, glasses and all. It stayed comfortable, nothing came loose, and it needed no repairs. The photos throughout this guide are from that build.

    +

    The templates and print files have been refined a little since then, so dry-fit the parts against your own base before gluing, as the guide suggests.

    ''') + H.append(f'''

    How it goes together

    +

    The base is a band of 6 mm foam across the forehead with a strip down the nose and a tab on each cheek. It is worn behind your glasses, so the frame rests on the foam and nothing surrounds the lenses.

    +

    Everything else is glued to that band in layers. Seven large leaves stand up from the band and rake back over the head: the four outer ones glued to its back face, the three centre ones to its front. A printed bark strip sits across the front, and a knot covers the centre stems. Two twigs and a row of medium leaves stand in front of the large ones. Acorns cover the strap anchors at the temples. Leaves and tendrils hang from the cheek tabs into the beard.

    +

    Assembly order follows from what overlaps what. Each step says why it comes where it does.

    +{fig(side_profile(), "Two slices through the mask, seen from the wearer’s left, with the front of the mask to the right.", "profile")}
    +
    {fig(D.scene("front", done=STEPKEYS, palette=D.BUILD), "Front: every part in place.")}{fig(D.scene("back", done=["strap", "strip", "back"], palette=D.BUILD), "Back: strap anchors and the stems of the four outer large leaves.")}
    ''') + mats = [('6 mm EVA foam', 'one piece 21 × 15 cm', 'base'), ('2 mm EVA foam', f'about {foam2_cm2():,} cm² laid out tightly; one 30 × 45 cm sheet, or three letter-size sheets', f'{leaf_total()} leaves, 2 strap patches'), + ('PLA filament', f'about {filament_g()} g', f'{print_total()} parts and the vein stamp'), ('Flat elastic, 19 mm (¾ in) wide', '60 cm; add 30 cm for the optional top strap', 'strap'), + ('Fishing line, or thin floral wire', '20 cm', 'hanging acorns'), + ('Painter’s tape', '', 'masking the strap before sealing'), ('Contact cement', 'small can; Barge or Weldwood original, not the gel or water-based kind', 'foam to foam, printed parts to foam'), + ('Hot glue, high-temperature', '4 to 5 sticks', 'leaf stems, elastic tails, hanging lines'), ('Card stock', '4 sheets', 'templates'), + ('120-grit sandpaper, rubbing alcohol', '', 'roughing and cleaning printed parts before gluing')] + tools = 'Craft knife with spare blades, cutting mat, heat gun, hot-glue gun, a small brush for the cement, silver or white pen for tracing on dark foam, a pin, scissors, a heat-proof glove, two towels, ruler. A printer for the templates and a 3D printer with a bed of at least 150 × 135 mm.' + H.append(f'''

    Materials and tools

    {table(["Material", "How much", "Used for"], mats)}

    Tools. {tools}

    +

    Paint and sealer are listed in the painting guide.

    ''') + H.append(f'''

    Everything you will make

    This list is complete, and every item on it ends up on the mask. The only extras are three spare leaves, which you keep unpainted for repairs.

    {parts_table()}
    ''') + plan = [('Evening 1', 'Start the print (stamp and brow strip first). Print the templates, paper-fit the base, cut and heat-form it. Fit the strap.', '1½ h'), + ('Evening 2', f'Cut, vein and curl the {leaf_total()} leaves. Clean up the printed parts and heat-form the brow strip.', '2 h'), + ('Evening 3', f'Assemble ({len(ASSEMBLY)} steps). Seal and paint, following the painting guide. Hang overnight.', '2 h + 3 h'), + ('Next morning', 'Finger-test the paint, pack the spare leaves and a small glue gun, wear it.', '5 min')] + H.append(f'''

    Plan your time

    {table(["When", "What", "Hands-on"], plan)} +

    Printing takes the longest, though none of the evening 1 work or the leaf cutting waits on it. Start it first and let it run. If a print fails overnight you still have a day of slack.

    ''') + H.append(f'''

    Stage A · Print

    {print_table()} +
    {"".join(f'
    {n}
    {n[:-4].replace("_", " ")}
    ' for n in REPORT)}

    Settings. PLA, 0.4 mm nozzle, 0.2 mm layers, 3 walls, 15% infill, brim on. No supports on anything. For the brow strip use 4 top and bottom layers, because it has to bend later without snapping.

    +

    Print order. First the vein stamp and the brow strip, so the leaf work is never waiting on the printer. Then everything else, on as many plates as your bed needs. Expect the full set to take most of a day on a slow printer.

    Scaled your base? If you print the base template at anything other than 100% (see Stage B), scale brow_strip.stl by the same percentage in the slicer.

    +

    Every part has a flat underside along its full length. If your slicer shows any part of a model floating above the bed, the model has been rotated, so lay it back on its flat face.

    +
    ''') + H.append(f'''

    Stage B · Base

    {ol([ + 'Print the template pages on card stock at 100%. Measure the 100 mm bar on every page before cutting anything.', + 'Paper fit. Cut the base out of paper, hold it to your face and put your glasses on over it. The band should lie on your forehead with the frame’s top bar along its lower edge, the nose strip should drop between the nose pads, and each cheek tab should sit outside the frame with the arm passing over it. If your frame is not close to 140 mm wide, reprint the base page only at the scale in its fit table. On that reprint the bar will measure the scaled length (93 mm at 93%), the brow strip must be printed at the same scale, and the distances given in the assembly steps shrink or grow by the same few percent; the drawings still show where everything goes.', + 'Trace onto 6 mm foam and cut with the blade upright. Fold the template on its centre line and cut both halves together if you want exact symmetry.', + 'Heat-form. Warm the band with the heat gun for a few seconds at a time and press it to your forehead (through a cloth) until it holds the curve. Do the same to bend each cheek tab in against your cheekbone.', + 'Score the back of the nose strip lightly where it meets the band, so it drapes down your nose.', + 'Put it on under your glasses again. It should sit there on its own for a moment before it slides.'])}
    +{photo("base_fit", "The formed base behind the glasses. (This photo was taken after the strap went on in Stage C.) The frame’s top bar runs along the lower edge of the band.")}
    ''') + H.append('

    Stage C · Strap

    ' + step_block('strap', 'C') + '''
    Optional second strap: decide now. One strap, sitting at brow level, holds the mask comfortably through a full day. If you want a second one as insurance, fit it now, the same way: a patch on the back at the dashed slit marked top-centre on the template, a slit through both, 30 cm of elastic running over the top of your head and stitched to the main strap behind it. It cannot be added later, because the knot and the centre leaf will cover that spot. It can always be snipped off.
    ''') + H.append(f'''

    Stage D · Leaves

    {ol([ + f'Trace and cut exactly the numbers printed on the template pages: {ML["L"]["total"]} large, {ML["M"]["total"]} medium, {ML["S"]["total"]} small, {ML["T"]["total"]} tip. Tick the boxes as you go. Turn the card over for every other leaf.', + 'Veins. Warm a leaf for 3 to 5 seconds until it just goes limp, lay it on a firm surface and press the stamp into it hard for about 5 seconds. For the large leaves stamp the upper and lower halves separately. For small and tip leaves use just the tip end of the stamp. No stamp yet? Score the veins with a ballpoint pen on warm foam.', + 'Cup and curl while it is still warm: press your thumb along the midrib to cup it, then bend the tip back. Crown leaves get a strong curl; cheek and nose leaves only a slight one. All shaping happens now. Once leaves are glued on, a heat gun would soften the hot glue and the printed parts.', + f'Sort into piles by where they go: {piles()}. Put the spares away now, unpainted.'])}
    +{photo("leaf_pile", "Cut leaves, the vein stamp, and printed parts, ready for assembly.")}
    ''') + H.append(f'''

    Stage E · Prepare the printed parts

    {ol([ + 'Snap off the brims. Sand every flat back with 120 grit until it is dull, then wipe with alcohol. Contact cement will not hold on glossy PLA.', + 'Form the brow strip. Warm it from the back on the gun’s low setting, moving constantly, until it starts to sag (10 to 15 seconds). Lay it on the curved band, press from the centre outward with a gloved hand, and hold for 30 seconds. Bend in stages; forcing the ends cold will crack it. Do not glue it yet.', + 'Dry-fit everything against the front-view drawing in “How it goes together”: strip, knot, acorns over the strap, a few leaves held in place. A part that does not fit your base is much cheaper to notice now.'])}
    ''') + H.append('

    Stage F · Assembly

    ' + f'{len(ASSEMBLY)} steps' + ', about two hours. Hot glue goes on leaf stems, so every blade can still be lifted to reach behind it. The brow strip and acorns are pressed on first, while the mask can still lie flat. The crown is built up after that, starting with the large leaves. Work with glasses within reach; several checks need them.

    ' + + ''.join(step_block(k, i+1) for i, k in enumerate(ASSEMBLY)) + '
    ') + H.append(f'''

    Final fit

    {ul([ + 'Put it on, then your glasses. Walk around, look down, shake your head.', + 'Both glasses arms sit flat and pass under the acorn clusters.', + 'Nothing presses on a lens. (The side lobes of the nose leaf do show at the inner corners.)', + 'The crown does not nod forward. If it does and you fitted the top strap, shorten it a little.', + 'Flex the crown gently and look for any leaf that moves at its stem. Re-glue it now.'])} +

    Then go to the painting guide. Nothing more is glued on after sealing.

    {photo("assembled_a", "Assembled and unpainted. The foam colours do not matter; sealer covers them.")}
    ''') + H.append('''

    If something is off

    ''' + table(['Problem', 'Fix'], [ + ('Mask nods forward', 'Shorten the top strap if you fitted one. If not, it cannot be added now; unpick one strap tail at the back and re-glue it 10 mm shorter so the band grips higher on the forehead.'), + ('Glasses ride up or rock', 'The nose strip or the nose-leaf stem is too thick under the bridge. Thin the foam there with a blade or a sanding drum.'), + ('A cheek tab flares out', 'Before assembly: reheat its lower corner and hold it against your cheekbone until cool. After assembly: warm only the back of the tab with a hair dryer, never a heat gun.'), + ('A leaf sits at the wrong angle', 'Do not reheat it in place. Peel the stem off, reshape the leaf away from the mask, glue it back.'), + ('Brow strip cracked while forming', 'It was bent too cold. Glue it down anyway with the crack closed; paint hides it. Or reprint: it is a 35-minute part.'), + ('A leaf comes off', 'Use a spare (medium or small; cut a large or tip leaf fresh if you lose one). Hot glue on the stem, then base colour brushed straight onto the foam; good enough for a repair.'), + ('Frame catches under the band', 'Shave a shallow groove along the back of the band where the top bar crosses it.')]) + '
    ') + H.append('''

    Without glasses

    Untested. The no-glasses base on template page 2 was drawn from the glasses base and has not been built.
    +

    It is the same band, nose strip and cheek tabs, joined under the eyes, with two 46 × 24 mm eye holes 64 mm apart. Everything in this guide applies unchanged, with three differences: paper-fit by checking you see clearly through both holes; ignore the instructions about glasses arms and lenses; and you may let the cheek leaves and the nose leaf sit a little higher, since no frame is in the way. Keep leaf blades clear of the eye holes.

    ''') + return ''.join(H) + +# --------------------------------------------------------------------------- painting guide +TONES = {'L-back': 'back', 'L-front': 'back', 'M-front': 'front', 'M-cheek': 'cheek', 'S-cheek': 'cheek', 'S': 'cheek', 'T': 'cheek'} +def _pal(**kw): + p = dict(D.BUILD); p.update(kw); return p +SEAL = _pal(base='#3d3d3d', base_s='#262626', L='#3d3d3d', M='#3d3d3d', S='#3d3d3d', T='#3d3d3d', leaf_s='#262626', vein='#2c2c2c', bark='#3d3d3d', bark_s='#262626', ridge='#2c2c2c', nut='#3d3d3d', cap='#3d3d3d', tendril='#3d3d3d', tendril_s='#262626', strap='#3d3d3d') +BASEC = _pal(base='#1f4d22', base_s='#143016', L='#1f4d22', M='#1f4d22', S='#1f4d22', T='#1f4d22', leaf_s='#143016', vein='#18401b', bark='#3a2614', bark_s='#24170b', ridge='#32200f', nut='#3a2614', cap='#3a2614', tendril='#1f4d22', tendril_s='#143016', strap='#3a2614') +MID = _pal(**{**BASEC, 'back': '#2b5c2c', 'front': '#3f7d37', 'cheek': '#3f7d37', 'T': '#3f7d37', 'tendril': '#2f6830'}) +HI = _pal(**{**MID, 'edge_front': '#b4d455', 'edge_cheek': '#b4d455', 'vein_front': '#b4d455', 'vein_cheek': '#a6c94e', 'tendril_s': '#a6c94e'}) +BARK = _pal(**{**HI, 'bark': '#6b4a2b', 'ridge': '#d1ab5e', 'nut': '#8a5a2b', 'cap': '#6b4a2b', 'cap_hi': '#d1ab5e'}) +WASH = _pal(**{**BARK, 'back': '#244f26', 'front': '#376d30', 'cheek': '#376d30', 'T': '#376d30', 'vein': '#3a2a14', 'vein_front': '#5a4a1c', 'vein_cheek': '#5a4a1c', 'base': '#173a1a', 'bark': '#573b21', 'ridge': '#c19c54', 'cap': '#573b21', 'leaf_s': '#2a2010', 'strap': '#2a1c0e'}) +FIN = _pal(**{**WASH, 'edge_back': '#9cc14d', 'vein_back': '#6f8f3a', 'gloss': True, 'nut': '#9a6a34'}) + +STAGES = [ + dict(key='seal', n=1, title='Seal', time='60 min with waits', pal=SEAL, photo=None, use='Plasti Dip spray, black or grey', do=[ + 'Wrap the part of the strap that goes behind your head in painter’s tape; sealer stiffens elastic. Hang the mask by the strap. Flex apart any two leaves that touch face to face.', + 'Three mist coats from about 30 cm. Each coat is five short passes: from below looking up into the crown, from above, from the left, from the right, and from behind for the backs of the large leaves. The straight-on front view covers first and matters least. The skin side of the base gets whatever lands on it and is not painted.', + 'If a surface looks wet you are too close. Wet sealer runs into the overlaps and glues neighbouring leaves into a web.', + 'Wait 10 to 15 minutes between coats, and each time run a finger between leaves that sit close together to break any bridge.', + 'After the third coat wait 30 minutes. Bare foam still showing in the deepest pockets is fine: the wash will sit there.'], + done='Foam, PLA and elastic are one even matte colour and every leaf still moves separately.'), + dict(key='base', n=2, title='Base coats', time='40 min', pal=BASEC, photo='paint_base', use='Dark green, dark brown; flat 12 mm brush', do=[ + 'Dark green on every leaf, front and back, on the tendrils and tip leaves, and on all foam you can see: the edges of the band, the cheek tabs, the nose strip.', + 'Dark brown on the brow strip, the knot, the twigs, every acorn (nut and cap), and the elastic where it shows at the temples.', + 'Thin the paint a little so it flows, and push the brush under every leaf edge. Two thin coats beat one thick one.', + 'It can be sloppy, since five more stages go over it.'], + done='Nothing sealer-coloured shows from any angle you would be seen from. Everything will look flat and dull at this point.'), + dict(key='mid', n=3, title='Leaves: mid-tone', time='30 min', pal=MID, photo='paint_mid', use='Mid green; old stiff 8 mm flat brush, paper towel', do=[ + 'Dry-brush. Load the brush, wipe nearly all the paint off on a paper towel, then drag it lightly across the surface so only the raised parts catch colour. Test on the towel: a stroke should leave almost nothing.', + 'Brush from stem toward tip on the face of every leaf.', + 'Large leaves: one light pass. Front row, cheek leaves, nose leaf and tip leaves: two or three passes. That difference gives the crown its depth.', + 'One light pass along the top of each tendril, and on leaf backs wherever they show from the side.'], + done='Leaves are clearly green with dark veins. The front row is visibly lighter than the large leaves behind it.'), + dict(key='hi', n=4, title='Leaves: highlights', time='15 min', pal=HI, photo='paint_hi', use='Yellow-green; the same brush, drier still', do=[ + 'Forward leaves only: front row, cheek leaves, nose leaf, tip leaves, and the curl of each tendril.', + 'Drag the nearly dry brush across the lobe tips and along the vein ridges. It should come out streaky, the way light catches a real leaf.', + 'Leave the large leaves alone for now. They get their highlight after the wash.', + 'Stop early. If a leaf looks striped there was too much paint on the brush.'], + done='From across the room the front row stands out from the large leaves.'), + dict(key='bark', n=5, title='Bark and acorns', time='20 min', pal=BARK, photo='paint_bark', use='Warm brown, tan or old gold; the dry-brushing brush, rinsed', do=[ + 'Warm brown dry-brushed over the brow strip, the rings of the knot, the tops of the twigs and the acorn nuts.', + 'Tan or old gold, drier, on the very tops of the strip’s ridges and knobs, the knot’s rings, and across the acorn caps so it catches each scale.', + 'No other step changes the mask as much. The strip stops looking like painted plastic and starts to look carved.'], + done='The strip and knot are the first thing your eye goes to.'), + dict(key='wash', n=6, title='Dark wash', time='30 min', pal=WASH, photo='paint_wash', use='Burnt umber thinned 1:4 with water, a drop of dish soap; round 4 mm brush, damp rag', do=[ + 'Flood the wash into every low place: leaf veins and the notches between lobes, under every overlap, the grooves of the strip, around the knot, between acorn scales, where stems meet the band.', + 'Within a minute, wipe the raised surfaces with the damp rag so the brown stays only in the low places.', + 'On the strip, wipe the ridge tops promptly to keep the gold. On the foam base and deep under the crown, leave it; those should go dark.', + 'Do the whole mask in one session so it dries evenly. It looks too contrasty while wet, though it settles as it dries.'], + done='Every vein and groove is dark, every raised surface still shows its colour.'), + dict(key='fin', n=7, title='After the wash', time='15 min, then overnight', pal=FIN, photo='paint_final', use='Yellow-green, gloss varnish or clear nail polish', do=[ + 'Re-highlight the tall leaves. The wash dulls the large leaves more than the rest. Once it is dry, dry-brush yellow-green down the midrib and across the top lobes of the three centre large leaves. Top halves only.', + 'Optional, and it must come before the gloss: one light coat of matte spray varnish over the whole mask, to protect the dry-brushing from a hood or scarf. Let it dry.', + 'Gloss, brushed on last, on the acorn nuts and a dot in the eye of the knot. Caps stay matte.', + 'Hang by the strap overnight somewhere warm with moving air. Do not lay it down, because leaves set in whatever shape they rest in.'], + done='Next morning a finger pressed on a hidden spot lifts no paint.'), +] + +def stage_block(st): + svg = D.scene('front', done=STEPKEYS, palette=st['pal'], tones=TONES, glasses=False) + pics = fig(svg, 'What this stage should look like, as a diagram.') + (photo(st['photo'], 'The mask at the end of this stage.') if st['photo'] else '') + body = f'
    {st["n"]}

    {st["title"]}

    {st["time"]} · {st["use"]}
    ' + ol(st['do']) + f'
    Done when {st["done"]}
    ' + return f'
    {pics}
    {body}
    ' + +def surface_table(): + c = M.counts(); nA = c['AL'] + c['AS'] + c['AF'] + rows = [(f'Crown, large leaves ({qty("L", c["L"])})', '✓', 'dark green', '1 light pass', '', '', 'veins, notches', 'top lobes of the 3 centre leaves'), + (f'Crown front row ({qty("M", step_counts("front")["M"])})', '✓', 'dark green', '2 to 3 passes', 'edges, veins', '', 'veins, notches, overlaps', ''), + (f'Cheek leaves ({", ".join(qty(k, n) for k, n in step_counts("cheeks").items())}) and nose leaf', '✓', 'dark green', '2 to 3 passes', 'edges, veins', '', 'veins, notches', ''), + (f'Tip leaves ({c["T"]})', '✓', 'dark green', '2 to 3 passes', 'tips', '', 'light', ''), + (f'Tendrils ({c["SPIRAL"]})', '✓', 'dark green', 'tops only', 'the curl', '', 'inside the curl', ''), + ('Leaf backs that show from the side', '✓', 'dark green', '1 light pass', '', '', 'light', ''), + ('Foam base: band edges, cheek tabs, nose strip', '✓', 'dark green', '', '', '', 'all over; leave it dark', ''), + ('Brow strip', '✓', 'dark brown', '', '', 'warm brown, then gold on ridge tops', 'every groove; wipe ridges fast', ''), + ('Bark knot', '✓', 'dark brown', '', '', 'warm brown, then gold on rings', 'between rings', 'gloss dot in the eye'), + (f'Twigs ({c["TWIG"]})', '✓', 'dark brown', '', '', 'warm brown on top', 'light', ''), + (f'Acorn nuts ({nA})', '✓', 'dark brown', '', '', 'warm brown', 'at the cap line', 'gloss'), + (f'Acorn caps ({nA})', '✓', 'dark brown', '', '', 'gold across the scales', 'between scales', 'stay matte'), + ('Elastic where it shows', '✓', 'dark brown', '', '', '', '', '')] + return table(['Surface', '1 Seal', '2 Base', '3 Mid-tone', '4 Highlight', '5 Bark', '6 Wash', '7 After'], rows, 'data dense') + +def leaf_strip(): + pals = [('Sealed', SEAL, None), ('Base', BASEC, None), ('Mid-tone', MID, 'front'), ('Highlight', HI, 'front'), ('Wash', WASH, 'front')] + out = '' + for name, pal, tone in pals: + p = dict(part='M', shape=G.oak('M', 0), x=0, y=0, ang=0, flip=False, tone=tone) + out += f'
    {D._leaf(p, pal, False, False)}
    {name}
    ' + return f'
    {out}
    ' + +def painting(): + H = [] + H.append(f'''

    Painting guide

    Green Man mask

    +

    Seven simple layers, ordered so that none of them undoes an earlier one. Allow about three and a half hours including drying, then leave it overnight to cure.

    +
    Start with
    the assembled mask, nothing left to glue
    Technique
    dry-brushing and one wash
    +
    Application
    brushed, apart from the sealer and optional varnish
    Finish by
    the evening before you wear it
    +{photo("finished_front", "Finished and worn.", "cover-photo")}
    ''') + paints = [('Plasti Dip spray, black or grey', '1 can', 'Sealer. Flexible, so it does not crack when leaves bend.'), + ('Dark green', 'most used', 'Phthalo, Hooker’s or forest green. Base for all leaves, tendrils and foam.'), + ('Mid green', '', 'Sap green or similar. The main leaf colour.'), ('Yellow-green', 'a little', 'Mid green plus yellow. Leaf highlights.'), + ('Dark brown (burnt umber)', '', 'Base for bark and acorns, and thinned for the wash.'), ('Warm brown', 'a little', 'Burnt or raw sienna.'), + ('Tan or old gold', 'a little', 'Ridge tops and acorn caps.'), ('Gloss varnish or clear nail polish', 'a few drops', 'Acorn nuts.'), ('Matte spray varnish', 'optional', 'Protects the finish.')] + H.append(f'''

    Paints and brushes

    {table(["Paint", "Amount", "Notes"], paints)} +

    Brushes. A 12 mm flat for base coats, an old stiff 8 mm flat for all the dry-brushing, a 4 mm round for the wash and the gloss. Paper towels, a water cup, a damp rag, a drop of dish soap for the wash, painter’s tape. Ordinary craft acrylics are fine.

    ''') + H.append(f'''

    Why this order

    {ul([ + 'Sealer goes on first. Paint soaks into bare foam and flakes off bare PLA.', 'Dark base coats come before anything light, since dry-brushing only shows over a darker colour.', + 'Highlights go on before the wash. If a highlight came out too strong, the wash softens it.', + 'The tall centre leaves get one more highlight after the wash, because the wash flattens them most.', + 'Gloss is the last thing on, as either the wash or a matte varnish would dull it.'])}
    +

    One medium leaf through five of the stages:

    {leaf_strip()}
    ''') + H.append(f'

    Every surface, every stage

    Tick down each column as you finish a stage. If a row has an entry in the column, that surface gets paint in that stage.

    {surface_table()}
    ') + H.append('

    Stages

    ' + ''.join(stage_block(s) for s in STAGES) + '
    ') + H.append('

    If something is off

    ' + table(['Problem', 'Fix'], [ + ('Leaves stuck together after sealing', 'Slide a blade between them now. After paint it tears.'), ('Dry-brush went on solid', 'Too much paint. Let it dry, dry-brush the base colour back over it, try again with a drier brush.'), + ('Wash dried on a raised surface', 'Scrub with a damp brush within the hour, or dry-brush that surface’s colour back over it.'), ('The whole thing looks flat', 'More contrast between rows: another pass of highlight on the front row only.'), + ('Paint still tacky in the morning', 'Thick sealer underneath. An hour in front of a fan before wearing.')]) + '
    ') + return ''.join(H) diff --git a/greenman-src/draw.py b/greenman-src/draw.py new file mode 100644 index 0000000..c181b59 --- /dev/null +++ b/greenman-src/draw.py @@ -0,0 +1,157 @@ +"""SVG drawings generated from the manifest. Units are mm (viewBox in mm); y is flipped for SVG.""" +import numpy as np +from shapely.geometry import Polygon, MultiPolygon, LineString, Point, box +from shapely import affinity +import geom as G, manifest as M +from geom import TOP + +VB = (-130.0, -(TOP+156), 260.0, TOP+156+104) # x, y, w, h for the full mask, front or back view + +BUILD = dict(base='#d9d6cc', base_s='#5b5850', L='#2f6b2f', M='#4c8a3c', S='#77ad4e', T='#93c25c', leaf_s='#1d4a1f', vein='#1d4a1f', + bark='#6b4a2b', bark_s='#3e2a16', ridge='#8f6d42', nut='#9a6a34', cap='#5a3d22', tendril='#2e6b2f', strap='#2b2b2b', + patch='#bdb7a3', wire='#777', glasses='#8a8a8a') +GHOST = dict(base='#eceae4', base_s='#9a978e', L='#e3e2dc', M='#e3e2dc', S='#e3e2dc', T='#e3e2dc', leaf_s='#b3b1a9', vein='#c4c2ba', + bark='#dddbd4', bark_s='#b3b1a9', ridge='#c9c7bf', nut='#dddbd4', cap='#d0cec6', tendril='#cfcdc5', strap='#bcbab2', + patch='#e6e3d8', wire='#bbb', glasses='#b8b8b8') +HL = '#c8321e' + +def f(v): + s = f'{v:.2f}'.rstrip('0').rstrip('.') + return '0' if s == '-0' else s # keep output identical across platforms + +def path(geom, mirror=False): + """SVG path data for a shapely polygon / multipolygon (y flipped; optionally x mirrored for the back view).""" + sx = -1 if mirror else 1 + if geom.geom_type == 'MultiPolygon': return ' '.join(path(g, mirror) for g in geom.geoms) + if geom.geom_type != 'Polygon': return '' + out = [] + for ring in [geom.exterior] + list(geom.interiors): + c = list(ring.coords) + out.append('M' + ' L'.join(f'{f(sx*x)} {f(-y)}' for x, y in c[:-1]) + ' Z') + return ' '.join(out) + +def line(ls, mirror=False): + sx = -1 if mirror else 1 + return 'M' + ' L'.join(f'{f(sx*x)} {f(-y)}' for x, y in ls.coords) + +def _leaf(p, pal, mirror, hl): + size = p['part']; tone = p.get('tone') + fill = (pal.get(tone) if tone else None) or pal[size] + edge = (pal.get('edge_' + tone) if tone else None) or pal.get('edge') + vein = (pal.get('vein_' + tone) if tone else None) or pal['vein'] + s = f'' + v = ' '.join(line(G.place(l, p['x'], p['y'], p['ang'], p['flip']), mirror) for l in G.vein_lines(size, p.get('variant', 0))) + return s + f'' + +def _strip(p, pal, mirror, hl): + s = f'' + x = np.linspace(-G.STRIP_L/2+4, G.STRIP_L/2-4, 60); grooves = [] + for k in range(5): + y = -7 + k*3.5 + 1.6*np.sin(x*0.09+k) + 0.7*np.sin(x*0.31+2*k) + keep = np.abs(y) < (11 - 5*(np.abs(x)/(G.STRIP_L/2))**1.6) - 1.5 + seg = [(a, b + G.STRIP_Y) for a, b, kk in zip(x, y, keep) if kk] + if len(seg) > 2: grooves.append(line(LineString(seg), mirror)) + s += f'' + for kx in (-52, -26, -5, 16, 40, 58): + s += f'' + return s + +def _knot(p, pal, mirror, hl): + cx, cy = G.KNOT_C; s = '' + for r, w in ((G.KNOT_R, 0.9 if hl else 0.5), (14, 0.7), (8, 0.7)): + s += f'' + s += f'' + if pal.get('gloss'): s += f'' + return s + +def _acorn(p, pal, mirror, hl): + w, l = G.ACORN[p['part']]; e = affinity.scale(Point(0, 0).buffer(1, 32), w/2, l/2) + cap = affinity.scale(e, 1.14, 1.0).intersection(box(-w, l*0.08, w, l)) # cap covers the upper ~40% + tfm = lambda g: G.place(g, p['x'], p['y'], p['ang']) + stroke = HL if hl else pal['bark_s']; sw = 0.9 if hl else 0.45 + s = f'' + if pal.get('gloss'): + s += f'' + s += f'' + if pal.get('cap_hi'): + dots = [Point(dx, l*0.2+dy).buffer(0.9, 6) for dy in (l*0.02, l*0.12, l*0.22) for dx in np.linspace(-w*0.36, w*0.36, 5)] + s += ''.join(f'' for d in dots if cap.contains(d)) + return s + +def _poly(p, pal, mirror, hl, fill, stroke, sw=0.45, dash=None): + d = f' stroke-dasharray="{dash}"' if dash else '' + return f'' + +def _part(p, pal, mirror, hl): + k = p['part'] + if k in 'LMST': return _leaf(p, pal, mirror, hl) + if k == 'STRIP': return _strip(p, pal, mirror, hl) + if k == 'KNOT': return _knot(p, pal, mirror, hl) + if k in ('AL', 'AS', 'AF'): return _acorn(p, pal, mirror, hl) + if k == 'TWIG': return _poly(p, pal, mirror, hl, pal['bark'], pal['bark_s']) + if k == 'SPIRAL': return _poly(p, pal, mirror, hl, pal['tendril'], pal.get('tendril_s') or pal['leaf_s'], 0.4) + if k == 'STRAP': return _poly(p, pal, mirror, hl, pal['strap'], pal['strap'], 0.3) + if k == 'PATCH': return _poly(p, pal, mirror, hl, pal['patch'], pal['base_s'], 0.4, '1.5 1') + if k == 'WIRE': return f'' + return '' + +def _base(base, pal, mirror, slits=True): + s = f'' + return s + +def _glasses(pal): + s = ''.join(f'' for sg in (-1, 1)) + s += f'' + for sg in (-1, 1): + s += f'' + return s + +def scene(view='front', done=(), hl=None, palette=None, numbers=False, glasses=True, base=None, hang_wire=True, vb=None, tones=None, extra=''): + """One picture of the mask. done = steps already on (ghosted unless palette given); hl = step being added now.""" + base = base or G.base_glasses(); mirror = view == 'back' + order = list(M.STEPS); show = set(done) | ({hl} if hl else set()) + parts = [p for p in M.PLACEMENTS if p['step'] in show] + def pal_for(p): + if palette: return palette + return BUILD if p['step'] == hl else GHOST + backs = sorted([p for p in parts if p['face'] == 'back'], key=lambda p: -p['z']) + fronts = sorted([p for p in parts if p['face'] != 'back'], key=lambda p: p['z']) + for p in parts: p['tone'] = tones.get(p['id'].rsplit('-', 1)[0]) if tones else None + body = [] + bpal = palette or (BUILD if (hl in (None, 'strap') or not done) else GHOST) + if view == 'front': + body += [_part(p, pal_for(p), False, p['step'] == hl and not palette) for p in backs if p['part'] != 'PATCH'] + body.append(_base(base, bpal, False)) + for p in fronts: + if p['part'] == 'AF' and hang_wire: + w = next(q for q in M.PLACEMENTS if q['id'] == p['onto'][0]) + body.append(f'') + body.append(_part(p, pal_for(p), False, p['step'] == hl and not palette)) + if glasses and base['kind'] == 'glasses': body.append(_glasses(bpal)) + else: + body.append(_base(base, bpal, True)) + for p in sorted(backs, key=lambda p: p['z']): body.append(_part(p, pal_for(p), True, p['step'] == hl and not palette)) + if 'strap' in show: # the elastic as seen from behind: through the slit, tail lying on the patch, strap leaving sideways + sp = BUILD if hl == 'strap' else GHOST + for sg in (-1, 1): + x0 = -sg*G.SLIT_X; out = -sg*(G.FRAME_W/2+23) + body.append(f'') + body.append(f'') + if numbers and hl: + seq = [p for p in M.step_placements(hl) if p['footprint'] is not None and p['part'] not in ('STRAP',) and (p['face'] == 'back') == mirror] + for i, p in enumerate(seq): + c = p['footprint'].centroid; x = (-1 if mirror else 1)*c.x + body.append(f'{i+1}') + v = vb or VB + return f'{"".join(body)}{extra}' + +if __name__ == '__main__': + steps = list(M.STEPS) + html = '' + html += f'
    {scene("front", done=steps, palette=BUILD)}
    ' + html += f'
    {scene("back", done=["strap","strip","back","twigs"], palette=BUILD)}
    ' + html += f'
    {scene("front", done=steps[:6], hl="front", numbers=True)}
    ' + html += f'
    {scene("back", done=["strap","strip"], hl="back", numbers=True)}
    ' + html += f'
    {scene("front", done=steps[:8], hl="tendrils", numbers=True)}
    ' + html += f'
    {scene("front", done=steps[:9], hl="cheeks", numbers=True)}
    ' + open(G.__file__.replace('geom.py', 'work/preview.html'), 'w').write(html + '') diff --git a/greenman-src/fonts.py b/greenman-src/fonts.py new file mode 100644 index 0000000..7eef3d8 --- /dev/null +++ b/greenman-src/fonts.py @@ -0,0 +1,6 @@ +"""@font-face rules for the PDFs, pointing at the bundled files so a build does not depend on what is installed.""" +from paths import ASSETS + +_FACES = [('Inter', 400, 'Inter-Regular.otf'), ('Inter', 600, 'Inter-SemiBold.otf'), ('Inter', 700, 'Inter-Bold.otf'), + ('Inter Display', 700, 'InterDisplay-Bold.otf'), ('DejaVu Sans Mono', 400, 'DejaVuSansMono.ttf')] +CSS = ''.join(f'@font-face {{ font-family: "{fam}"; font-weight: {w}; src: url("{(ASSETS / "fonts" / fn).as_uri()}"); }}\n' for fam, w, fn in _FACES) diff --git a/greenman-src/geom.py b/greenman-src/geom.py new file mode 100644 index 0000000..9f47a32 --- /dev/null +++ b/greenman-src/geom.py @@ -0,0 +1,148 @@ +"""Geometry for the Green Man mask kit. All units mm. Origin = centre of the eye line, +x = wearer's left +as seen from the front (viewer's right), +y = up. Everything else in the kit is generated from this file +and manifest.py.""" +import numpy as np +from scipy.interpolate import splprep, splev +from shapely.geometry import Polygon, Point, LineString, box +from shapely.ops import unary_union +from shapely import affinity + +# ---- reference glasses (the frames the mask was built around) ---- +FRAME_W = 139.7 # outer width of the frame front +LENS_W, LENS_H = 57.15, 41.9 +BRIDGE = FRAME_W - 2*LENS_W - 6.0 +LENS_CX = BRIDGE/2 + LENS_W/2 +TOP = LENS_H/2 + 4 # y of the frame's top bar; the brow band starts here +BAND_TOP = TOP + 56 # top of the band at the centre line + +def _mirror(p): return affinity.scale(p, xfact=-1, origin=(0, 0)) + +def lens(sgn): + cx = sgn*LENS_CX; w, h = LENS_W-8, LENS_H-8 + p = Polygon([(cx-sgn*w/2, h/2), (cx+sgn*w/2, h/2), (cx+sgn*(w/2-6), -h/2+3), (cx+sgn*4, -h/2), (cx-sgn*(w/2-2), -h/2+4)]) + return p.buffer(4, join_style=1) + +_band = Polygon([(-FRAME_W/2-22, TOP), (-FRAME_W/2-22, TOP+22), (-FRAME_W/2-10, TOP+44), (-40, TOP+52), (0, TOP+56), + (40, TOP+52), (FRAME_W/2+10, TOP+44), (FRAME_W/2+22, TOP+22), (FRAME_W/2+22, TOP)]) +_nose = Polygon([(-9, TOP+2), (9, TOP+2), (6, TOP-10), (7, -8), (12, -34), (0, -48), (-12, -34), (-7, -8), (-6, TOP-10)]) +_cheek = Polygon([(-FRAME_W/2-24, TOP+6), (-FRAME_W/2+4, TOP+6), (-FRAME_W/2+2, -6), (-FRAME_W/2-6, -24), (-FRAME_W/2-18, -18), (-FRAME_W/2-26, -2)]) + +SLIT_X = FRAME_W/2 + 2 # side strap slit centre (x = +/-) +SLIT_Y0, SLIT_Y1, SLIT_W = TOP+8, TOP+28, 3.0 +PATCH_W, PATCH_H = 30.0, 36.0 # 2 mm reinforcement patch on the back, centred on the slit + +def band_top(x): + """y of the band's top edge at x (piecewise linear, matches _band).""" + xs = [0, 40, FRAME_W/2+10, FRAME_W/2+22]; ys = [TOP+56, TOP+52, TOP+44, TOP+22] + return float(np.interp(abs(x), xs, ys)) + +def base_glasses(): + """As-built base: brow band + nose strip + cheek tabs. Worn behind the glasses; nothing surrounds the lenses.""" + outline = unary_union([_band, _nose, _cheek, _mirror(_cheek)]).buffer(5, join_style=1).buffer(-5, join_style=1) + return dict(kind='glasses', outline=outline, holes=[], **_common()) + +def base_plain(): + """No-glasses variant (UNTESTED): same band, nose and cheeks, joined under the eyes, with eye holes.""" + under = box(-FRAME_W/2-4, -30, FRAME_W/2+4, TOP+2) + outline = unary_union([_band, _nose, _cheek, _mirror(_cheek), under]).buffer(8, join_style=1).buffer(-8, join_style=1) + eye = affinity.scale(Point(0, 0).buffer(1, 48), 23, 12) # 46 x 24 mm + holes = [affinity.translate(affinity.rotate(eye, 6*s), 32*s, 0) for s in (-1, 1)] # 64 mm between centres + return dict(kind='plain', outline=outline.difference(unary_union(holes)), holes=holes, **_common()) + +def _common(): + slits = [box(s*SLIT_X-SLIT_W/2, SLIT_Y0, s*SLIT_X+SLIT_W/2, SLIT_Y1) for s in (-1, 1)] + patches = [box(s*SLIT_X-PATCH_W/2, (SLIT_Y0+SLIT_Y1)/2-PATCH_H/2, s*SLIT_X+PATCH_W/2, (SLIT_Y0+SLIT_Y1)/2+PATCH_H/2) for s in (-1, 1)] + top_slit = box(-12, TOP+45, 12, TOP+48) # optional second strap, only if the mask nods forward + return dict(slits=slits, patches=patches, top_slit=top_slit) + +# zones on the glasses base where nothing raised may be glued (the frame and its arms rest here) +def frame_zone(): return box(-FRAME_W/2-1, -LENS_H/2-4, FRAME_W/2+1, TOP+2) +def arm_zones(): return [box(min(s*(FRAME_W/2-2), s*(FRAME_W/2+40)), TOP-6, max(s*(FRAME_W/2-2), s*(FRAME_W/2+40)), TOP+3) for s in (-1, 1)] + +# ---- oak leaves ---- +LEAF = {'L': (95, 65), 'M': (70, 48), 'S': (48, 33), 'T': (30, 21)} # blade length, width +STEM_L, STEM_W = 12.0, 5.0 +# Two deliberately different leaf shapes per size, so a crown of them does not look stamped out. +# A: broad white-oak leaf, four shallow rounded lobes a side, nearly symmetric. +# B: slimmer leaf with three long lobes a side cut almost to the midrib, the lobes alternating left and right, +# and a large rounded end lobe. +# Each entry is (right half, left half) as (fraction of width, fraction of length) control points. +_A = [(0.00,0.00),(0.06,0.04),(0.26,0.12),(0.40,0.22),(0.30,0.28),(0.16,0.33),(0.36,0.40),(0.52,0.50),(0.46,0.56), + (0.20,0.60),(0.38,0.66),(0.50,0.74),(0.40,0.80),(0.18,0.84),(0.28,0.89),(0.30,0.94),(0.14,0.985),(0.00,1.00)] +_BR = [(0.00,0.00),(0.07,0.04),(0.17,0.10),(0.34,0.17),(0.50,0.25),(0.40,0.31),(0.15,0.36),(0.16,0.42),(0.36,0.47), + (0.58,0.56),(0.46,0.63),(0.15,0.67),(0.16,0.72),(0.34,0.76),(0.44,0.84),(0.38,0.93),(0.20,0.99),(0.00,1.00)] +_BL = [(0.00,0.00),(0.07,0.05),(0.15,0.15),(0.32,0.24),(0.46,0.33),(0.36,0.39),(0.15,0.43),(0.16,0.50),(0.36,0.56), + (0.54,0.65),(0.42,0.71),(0.15,0.75),(0.17,0.80),(0.36,0.84),(0.42,0.90),(0.32,0.96),(0.16,0.995),(0.00,1.00)] +_CTRL = {0: (_A, _A), 1: (_BR, _BL)} +_WIDTH = {0: 1.0, 1: 0.90} # B is a little slimmer overall +# lobe tips the side veins run to: (fraction of width, fraction of length), right half then left half +_VEIN = {0: ([(0.40,0.22),(0.52,0.50),(0.50,0.74),(0.30,0.92)],)*2, + 1: ([(0.50,0.25),(0.58,0.56),(0.44,0.84)], [(0.46,0.33),(0.54,0.65),(0.42,0.90)])} + +def _half(L, W, ctrl, rng, jitter): + pts = np.array([(x*W*(1+rng.uniform(-jitter, jitter)*(x > 0)), y*L) for x, y in ctrl]) + tck, _ = splprep(pts.T, s=0, k=3); u = np.linspace(0, 1, 200) + x, y = splev(u, tck); return np.clip(x, 0, None), y + +def oak(size, variant=0): + """Leaf polygon WITH its stem, one piece. Blade base at (0,0), tip at +y, stem tab from y=-STEM_L to 0.""" + L, W = LEAF[size]; W = W*_WIDTH[variant] + rng = np.random.default_rng({'L': 10, 'M': 20, 'S': 30, 'T': 40}[size] + variant) + cr, cl = _CTRL[variant] + xr, yr = _half(L, W, cr, rng, 0.04); xl, yl = _half(L, W, cl, rng, 0.04) + blade = Polygon(list(zip(xr, yr)) + [(-a, b) for a, b in reversed(list(zip(xl, yl)))][1:]).buffer(0) + sw = STEM_W if size != 'T' else 4.0 + stem = box(-sw/2, -STEM_L, sw/2, L*0.06) + leaf = unary_union([blade, stem]).buffer(0.6, join_style=1).buffer(-0.6, join_style=1) + assert leaf.geom_type == 'Polygon' and leaf.is_valid, f'leaf {size}{variant} is not one piece' + # 2 mm foam tears where a lobe joins the midrib by less than about 5 mm (3 mm on the tiny tip leaves) + neck = {'L': 2.5, 'M': 2.5, 'S': 2.0, 'T': 1.4}[size] + assert leaf.buffer(-neck).geom_type == 'Polygon', f'leaf {size}{variant}: a lobe is joined by less than {2*neck:.0f} mm' + return leaf + +def vein_lines(size, variant=0): + L, W = LEAF[size]; W = W*_WIDTH[variant] + out = [LineString([(0, -STEM_L*0.8), (0, 0.97*L)])] + for s, tips in zip((1, -1), _VEIN[variant]): + for wx, ly in tips: out.append(LineString([(0, L*(ly-0.13)), (s*W*wx*0.85, L*ly)])) + return out + +def stem_tab(size): + sw = STEM_W if size != 'T' else 4.0 + return box(-sw/2, -STEM_L, sw/2, 0) + +def place(geom, x, y, angle=0.0, flip=False): + """angle: 0 = tip up, positive = tip leans toward +x (clockwise as drawn).""" + g = affinity.scale(geom, xfact=-1, origin=(0, 0)) if flip else geom + return affinity.translate(affinity.rotate(g, -angle, origin=(0, 0)), x, y) + +# ---- printed parts, front-view outlines ---- +STRIP_L = 136.0 +def strip_poly(L=STRIP_L): + """Brow strip as printed: straight, 22 mm tall at the centre tapering to 12 mm. Centre at (0,0).""" + x = np.linspace(-L/2, L/2, 120); half = 11 - 5*(np.abs(x)/(L/2))**1.6 + top = half + 1.2*np.sin(x*0.22) + 0.6*np.sin(x*0.53+1); bot = -half + 1.0*np.sin(x*0.19+2) + return Polygon(list(zip(x, top)) + list(zip(x[::-1], bot[::-1]))).buffer(1.5, join_style=1).buffer(-1.5, join_style=1) + +STRIP_Y = TOP + 16 # strip centre line on the band +KNOT_R = 21.0 +KNOT_C = (0.0, TOP + 16 + 11 + 1 + KNOT_R) # sits on the band just above the strip, touching its top edge +ACORN = {'AL': (30.0, 37.0), 'AS': (22.0, 29.0), 'AF': (27.0, 31.0)} # width, length as printed + +def acorn_poly(kind): + w, l = ACORN[kind]; return affinity.scale(Point(0, 0).buffer(1, 32), w/2, l/2) + +def spiral_path(n=80): + """Small tendril, 65 x 26 mm as printed. Stem end at (0,0), runs toward +y then curls.""" + L, turns = 48.0, 1.3 + t = np.linspace(0, 1, 60); xs = t*L; ys = 10*np.sin(t*np.pi*1.4) + ts = np.linspace(0, 1, n); ang = ts*2*np.pi*turns; rad = 14*(1-0.72*ts) + sx = L + rad*np.sin(ang); sy = 10*np.sin(np.pi*1.4) + rad*(1-np.cos(ang)) + pts = np.column_stack([np.concatenate([xs, sx[1:]]), np.concatenate([ys, sy[1:]])]) + return LineString([(y, x) for x, y in pts]) # rotate so the stem runs along +y + +def twig_paths(): + t = np.linspace(0, 1, 40); main = np.column_stack([6*np.sin(t*np.pi*2.2), t*85]) + p0 = main[18]; t2 = np.linspace(0, 1, 25); b1 = np.column_stack([p0[0]+t2*22+4*np.sin(t2*np.pi*1.5), p0[1]+t2*38]) + p1 = main[30]; t3 = np.linspace(0, 1, 20); b2 = np.column_stack([p1[0]-t3*18, p1[1]+t3*26]) + return [LineString(main), LineString(b1), LineString(b2)] diff --git a/greenman-src/manifest.py b/greenman-src/manifest.py new file mode 100644 index 0000000..0e4998b --- /dev/null +++ b/greenman-src/manifest.py @@ -0,0 +1,224 @@ +"""Single source of truth for the Green Man mask: every part, where it goes, what it is glued to, and in what order. +The cut list, print list, step order and all drawings are derived from PLACEMENTS. validate() fails loudly if +anything is made but not placed, placed but not made, glued onto an occupied spot, or sequenced after +something that covers it.""" +from collections import Counter, OrderedDict +from shapely.geometry import Point, LineString, box +from shapely.ops import unary_union +import geom as G +from geom import TOP +SLIT_HALF = G.SLIT_W/2 + +PARTS = OrderedDict([ + # id name made from / file kind + ('BASE', ('Mask base', '6 mm EVA foam', 'foam')), + ('PATCH', ('Strap reinforcement patch', '2 mm EVA foam, 30 x 36 mm', 'foam')), + ('L', ('Large oak leaf, 95 mm', '2 mm EVA foam', 'leaf')), + ('M', ('Medium oak leaf, 70 mm', '2 mm EVA foam', 'leaf')), + ('S', ('Small oak leaf, 48 mm', '2 mm EVA foam', 'leaf')), + ('T', ('Tip leaf, 30 mm', '2 mm EVA foam', 'leaf')), + ('STRIP', ('Brow strip', 'brow_strip.stl', 'print')), + ('KNOT', ('Bark knot', 'bark_knot.stl', 'print')), + ('TWIG', ('Forked twig', 'twig_forked.stl', 'print')), + ('AL', ('Acorn, large half', 'acorn_large_half.stl', 'print')), + ('AS', ('Acorn, small half', 'acorn_small_half.stl', 'print')), + ('AF', ('Acorn, full (hangs on a line)', 'acorn_full.stl', 'print')), + ('SPIRAL',('Tendril spiral', 'tendril_spiral.stl', 'print')), + ('STRAP', ('Elastic strap, 19-25 mm wide', 'flat elastic, about 45 cm', 'other')), + ('WIRE', ('Hanging line, 8 cm', 'fishing line or thin wire', 'other')), +]) +TOOLS = OrderedDict([('STAMP', ('Leaf vein stamp', 'leaf_vein_stamp.stl'))]) +SPARES = {'M': 1, 'S': 2} # cut and keep UNSEALED as repair stock; the only parts not placed + +# Assembly steps in order. 'after' lists (step, reason): the reason is printed in the guide. +STEPS = OrderedDict([ + ('strap', dict(title='Strap', view='both', prep=True, after=[])), + ('strip', dict(title='Brow strip', view='front', after=[('strap', 'the strip is pressed on hard; do it while the band is bare and can be backed with your hand')])), + ('clusters',dict(title='Acorn clusters', view='front', after=[('strap', 'the clusters cover the strap where it crosses the front of the band'), ('strip', 'the clusters butt against the ends of the strip')])), + ('centre', dict(title='Crown, centre large leaves', view='front', after=[('strip', 'their stems sit on the front of the band above the strip'), ('clusters', 'the clusters are pressed on hard, which is easier before any leaves stand on the band')])), + ('back', dict(title='Crown, outer large leaves', view='back', after=[('centre', 'the centre leaves set the height and rake that the outer ones are matched to')])), + ('knot', dict(title='Bark knot', view='front', after=[('centre', 'the knot sits on top of the three centre stems and hides them'), ('strip', 'its lower edge touches the top edge of the strip')])), + ('twigs', dict(title='Twigs', view='front', after=[('back', 'each twig lies up the front of the large leaves, so all seven need to be in place')])), + ('front', dict(title='Crown, front row', view='front', after=[('knot', 'the two middle leaves fan around the knot and overlap its sides'), ('clusters', 'the outer leaves lean over the inner edge of each cluster'), ('twigs', 'the front-row leaves cover the thick ends of the twigs'), ('centre', 'the front row leans back onto the large leaves')])), + ('hang', dict(title='Hanging acorns', view='front', after=[('clusters', 'so the hanging acorn can be judged against the cluster above it')])), + ('tendrils',dict(title='Tendrils', view='front', after=[('hang', 'the cheek tab is still bare except for the line, so both tendril stems can be pressed flat')])), + ('cheeks', dict(title='Cheek leaves', view='front', after=[('hang', 'two of the leaf stems go over the line and hide it'), ('tendrils', 'the leaf blades hang in front of the tendril stems; glued first, the leaves would be in the way')])), + ('nose', dict(title='Nose leaf', view='front', after=[('strip', 'its stem sits just under the brow strip')])), +]) + +def _pair(fn): + out = [] + for s in (-1, 1): out += fn(s) + return out + +def build_placements(): + P = [] + def add(pid, part, step, face, glue, shape, footprint, z, x=None, y=None, note='', onto=(), ang=0.0, flip=False, variant=0, count=1): + P.append(dict(id=pid, part=part, step=step, face=face, glue=glue, shape=shape, footprint=footprint, z=z, x=x, y=y, note=note, + onto=tuple(onto), ang=ang, flip=flip, variant=variant, count=count)) + side = {-1: 'R', 1: 'L'} # wearer's right is at -x in the front view + + # --- strap: around the outer edge onto the front, through the slit front-to-back, tail glued to the underside of the strap + for s in (-1, 1): + run = box(min(s*G.SLIT_X, s*(G.FRAME_W/2+23)), G.SLIT_Y0, max(s*G.SLIT_X, s*(G.FRAME_W/2+23)), G.SLIT_Y1) + add(f'STRAP-front-{side[s]}', 'STRAP', 'strap', 'front', 'none', run, run, 12, s*G.SLIT_X, (G.SLIT_Y0+G.SLIT_Y1)/2, count=1 if s < 0 else 0) # one strap, two ends + add(f'PATCH-{side[s]}', 'PATCH', 'strap', 'back', 'contact', G._common()['patches'][(s+1)//2], G._common()['patches'][(s+1)//2], 1, s*G.SLIT_X, (G.SLIT_Y0+G.SLIT_Y1)/2) + # --- brow strip and knot + sp = G.place(G.strip_poly(), 0, G.STRIP_Y) + add('STRIP', 'STRIP', 'strip', 'front', 'contact', sp, sp, 20, 0, G.STRIP_Y) + kn = Point(*G.KNOT_C).buffer(G.KNOT_R, 48) + add('KNOT', 'KNOT', 'knot', 'front', 'contact', kn, kn.intersection(G.base_glasses()['outline']), 21, *G.KNOT_C, + onto=('L-front-1', 'L-front-2', 'L-front-3')) + # --- crown, large leaves. As built: the four outer ones on the BACK of the band, the three centre ones on the FRONT + # (their stems end up under the knot). + for j, (x, ang, drop) in enumerate([(-36, -22, 2), (36, 22, 2), (-52, -30, 12), (52, 30, 12)]): + y = G.band_top(x) - drop; v = (j // 2) % 2 + add(f'L-back-{j+1}', 'L', 'back', 'back', 'hot', G.place(G.oak('L', v), x, y, ang, flip=x < 0), G.place(G.stem_tab('L'), x, y, ang), 2 + j // 2, x, y, ang=ang, flip=x < 0, variant=v) + for j, (x, ang, drop) in enumerate([(0, 0, 2), (-17, -10, 8), (17, 10, 8)]): + y = G.band_top(x) - drop; v = 0 if j == 0 else 1 + add(f'L-front-{j+1}', 'L', 'centre', 'front', 'hot', G.place(G.oak('L', v), x, y, ang, flip=x < 0), G.place(G.stem_tab('L'), x, y, ang), 6 + (j == 0), x, y, ang=ang, flip=x < 0, variant=v) + # --- twigs: printed flat-backed, so they go on the FRONT. Thick end on the front of the band near its top edge, + # the rest lying up the front faces of the back-row leaves. The front row later hides the thick ends. + for s in (-1, 1): + x, y, ang = s*30, TOP + 29, 2 + paths = [G.place(l, x, y, s*ang, flip=s < 0) for l in G.twig_paths()] + tw = unary_union(paths).buffer(1.6) + foot = LineString([paths[0].interpolate(d) for d in (1, 8, 16, 22)]).buffer(3.2) # the 22 mm that lies on the band + add(f'TWIG-{side[s]}', 'TWIG', 'twigs', 'front', 'contact', tw, foot, 10, x, y, ang=s*ang, flip=s < 0) + # --- acorn clusters at the strap exits: 2 large + 1 small per side, stacked on each other + for s in (-1, 1): + zone = box(min(s*70, s*100), TOP+4, max(s*70, s*100), TOP+47) + acs = [('AL', 86, TOP+23, 15), ('AL', 80, TOP+41, -35), ('AS', 93, TOP+35, 50)] + for k, (kind, ax, ay, rot) in enumerate(acs): + shp = G.place(G.acorn_poly(kind), s*ax, ay, s*rot) + add(f'{kind}-cluster-{side[s]}{k+1}', kind, 'clusters', 'front', 'contact', shp, shp.intersection(zone) if k == 0 else Point(s*ax, ay).buffer(3), 22+k, s*ax, ay, ang=s*rot, + onto=(f'STRAP-front-{side[s]}',) + tuple(f'{a[0]}-cluster-{side[s]}{m+1}' for m, a in enumerate(acs[:k]))) + # --- crown front row: 6 medium leaves on the FRONT of the band, stems just above the strip + for k, (x0, y0, ang) in enumerate([(24, TOP+41, 12), (42, TOP+39, 27), (58, TOP+37, 42)]): + for s in (-1, 1): + add(f'M-front-{side[s]}{k+1}', 'M', 'front', 'front', 'hot', G.place(G.oak('M', k % 2), s*x0, y0, s*ang, flip=s < 0), + G.place(G.stem_tab('M'), s*x0, y0, s*ang), 30+k, s*x0, y0, note=f'{ang} deg out', ang=s*ang, flip=s < 0, variant=k % 2) + # --- hanging acorns: wire glued to the top of the cheek tab, later covered by the medium cheek leaf stem + for s in (-1, 1): + anchor = Point(s*88, 13).buffer(3) + add(f'WIRE-{side[s]}', 'WIRE', 'hang', 'front', 'hot', anchor, anchor, 25, s*88, 13) + add(f'AF-hang-{side[s]}', 'AF', 'hang', 'hangs', 'wire', G.place(G.acorn_poly('AF'), s*108, -16), None, 45, s*108, -16, onto=(f'WIRE-{side[s]}',)) + # --- tendrils: two small spirals per side on the lower cheek tab, each with a tip leaf glued to its curl + for s in (-1, 1): + for k, (x0, y0, ang, fl) in enumerate([(73, -6, 20, True), (89, -4, -22, False)]): # side by side, curling away from each other + line = G.place(G.spiral_path(), s*x0, y0, 180 + s*ang, flip=(s < 0) != fl) + add(f'SPIRAL-{side[s]}{k+1}', 'SPIRAL', 'tendrils', 'front', 'contact', line.buffer(2.2), line.interpolate(6).buffer(4), 26+k, s*x0, y0, ang=180 + s*ang, flip=(s < 0) != fl) + ex, ey = line.coords[-1] + add(f'T-{side[s]}{k+1}', 'T', 'tendrils', 'onpart', 'hot', G.place(G.oak('T', k), ex, ey, 180 + s*(8 if k else -12)), None, 44, ex, ey, onto=(f'SPIRAL-{side[s]}{k+1}',), ang=180 + s*(8 if k else -12), variant=k) + # --- cheek leaves: 1 medium + 2 small per side, tips down, stems just below the line the glasses arms rest on + for s in (-1, 1): + for k, (size, x0, y0, th) in enumerate([('M', 85, 6, 0), ('S', 76, 7, -3), ('S', 92.5, 7, -8)]): + add(f'{size}-cheek-{side[s]}{k+1}', size, 'cheeks', 'front', 'hot', G.place(G.oak(size, k % 2), s*x0, y0, 180 + s*th, flip=s < 0), + G.place(G.stem_tab(size), s*x0, y0, 180 + s*th), 40+k, s*x0, y0, onto=(f'WIRE-{side[s]}',) if (size == 'M' or k == 2) else (), ang=180 + s*th, flip=s < 0, variant=k % 2) + # --- nose leaf + add('S-nose', 'S', 'nose', 'front', 'hot', G.place(G.oak('S', 1), 0, TOP-8, 180), G.place(G.stem_tab('S'), 0, TOP-8, 180), 46, 0, TOP-8, ang=180, variant=1) + order = list(STEPS) + P.sort(key=lambda p: (order.index(p['step']),)) # stable: keeps authoring order inside a step + for i, p in enumerate(P): p['seq'] = i + return P + +PLACEMENTS = build_placements() + +def counts(): + """Number of each part actually placed.""" + c = Counter() + for p in PLACEMENTS: c[p['part']] += p.get('count', 1) + return c + +def make_list(): + """What to cut / print / buy = placed + declared spares. Nothing else.""" + c = counts(); out = OrderedDict() + for pid, (name, src, kind) in PARTS.items(): + n = (1 if pid == 'BASE' else c.get(pid, 0)); sp = SPARES.get(pid, 0) + out[pid] = dict(name=name, src=src, kind=kind, placed=n, spare=sp, total=n+sp) + return out + +def step_placements(step): return [p for p in PLACEMENTS if p['step'] == step] + +def validate(verbose=True): + errs, notes = [], [] + base = G.base_glasses(); outline = base['outline']; order = list(STEPS) + # 1. every part is placed; every placement is a known part + for pid, row in make_list().items(): + if row['placed'] == 0: errs.append(f'{pid} is in the parts list but never placed') + for p in PLACEMENTS: + if p['part'] not in PARTS: errs.append(f"{p['id']} uses unknown part {p['part']}") + # 2. step dependencies are satisfied by the written order + for i, (k, st) in enumerate(STEPS.items()): + for dep, why in st['after']: + if order.index(dep) >= i: errs.append(f'step {k} is listed before {dep} but must follow it ({why})') + # 3. glue footprints on the same face never collide unless one is declared glued onto the other + glued = [p for p in PLACEMENTS if p['footprint'] is not None and p['face'] in ('front', 'back')] + for i, a in enumerate(glued): + for b in glued[i+1:]: + if a['face'] != b['face']: continue + ov = a['footprint'].intersection(b['footprint']).area + if ov > 1.0 and a['id'] not in b['onto'] and b['id'] not in a['onto']: + errs.append(f"glue areas collide on the {a['face']}: {a['id']} and {b['id']} ({ov:.0f} mm2)") + # 4. nothing is sequenced after a part that already covers its glue area (same face) + for a in glued: + for b in PLACEMENTS: + if b is a or b['face'] != a['face'] or b['shape'] is None: continue + if b['seq'] < a['seq'] and b['shape'].intersection(a['footprint']).area > 1.0 and b['id'] not in a['onto']: + errs.append(f"{a['id']} is glued after {b['id']}, which already covers its glue area") + # 5. glue areas sit on foam: leaf stems fully, rigid printed parts at least 55% + for p in glued: + if p['part'] in ('STRAP',): continue + ground = unary_union([outline] + [q['shape'] for q in PLACEMENTS if q['id'] in p['onto']]) + frac = p['footprint'].intersection(ground).area / max(p['footprint'].area, 1e-6) + need = 0.97 if p['part'] in ('L', 'M', 'S', 'PATCH', 'WIRE', 'SPIRAL', 'TWIG', 'STRIP') else 0.55 + if frac < need: errs.append(f"{p['id']}: only {frac:.0%} of its glue area is on the base (needs {need:.0%})") + # 6. glasses keep-outs on the front: nothing in the arm zones; only the nose leaf under the frame + for p in glued: + if p['face'] != 'front' or p['part'] == 'STRAP': continue + for z in G.arm_zones(): + if p['footprint'].intersection(z).area > 0.5: errs.append(f"{p['id']} is glued where a glasses arm rests") + if p['footprint'].intersection(G.frame_zone()).area > 0.5 and p['id'] != 'S-nose': + errs.append(f"{p['id']} is glued under the glasses frame") + for p in PLACEMENTS: + if p['shape'] is None or p['face'] == 'back' or p['id'] == 'S-nose': continue + for sg in (-1, 1): + if p['shape'].intersection(G.lens(sg).buffer(-4)).area > 2: errs.append(f"{p['id']} hangs over the glass of a lens") + rigid = [p for p in PLACEMENTS if p['part'] in ('STRIP', 'KNOT', 'AL', 'AS', 'SPIRAL') and p['shape'] is not None] + for i, a in enumerate(rigid): + for b in rigid[i+1:]: + ov = a['shape'].intersection(b['shape']).area + if ov > 3 and a['id'] not in b['onto'] and b['id'] not in a['onto']: + errs.append(f"rigid parts overlap: {a['id']} and {b['id']} ({ov:.0f} mm2); they cannot both sit flat") + # 7. on the back: leaf stems and twigs stay clear of the strap patches (the tail of the elastic lives there) + for p in glued: + if p['face'] == 'back' and p['part'] != 'PATCH': + for pt in base['patches']: + if p['footprint'].intersection(pt).area > 0.5: errs.append(f"{p['id']} is glued onto a strap patch") + # 8. base template is one piece with no thin necks, slits sit well inside foam and inside their patches + for b in (G.base_glasses(), G.base_plain()): + o = b['outline'] + if o.geom_type != 'Polygon' or not o.is_valid: errs.append(f"{b['kind']} base is not one valid piece") + if o.buffer(-4).geom_type != 'Polygon': errs.append(f"{b['kind']} base has a neck narrower than 8 mm") + for sl, pt in zip(b['slits'], b['patches']): + cx, cy = sl.centroid.x, sl.centroid.y; sgn = 1 if cx > 0 else -1 + ray = box(min(cx, cx+sgn*60), cy-0.5, max(cx, cx+sgn*60), cy+0.5).intersection(o) + outward = ray.bounds[2]-ray.bounds[0] - SLIT_HALF + if outward < 15: errs.append(f"{b['kind']} base: only {outward:.0f} mm of foam outboard of the strap slit") + if sl.distance(o.exterior) < 8: errs.append(f"{b['kind']} base: strap slit is {sl.distance(o.exterior):.0f} mm from an edge") + if not pt.buffer(-4).contains(sl): errs.append(f"{b['kind']} base: patch does not cover its slit with 4 mm to spare") + for h in b['holes']: + d = h.distance(o.exterior) if not o.interiors else min(h.exterior.distance(o.exterior), 99) + if d < 10: errs.append(f"{b['kind']} base: eye hole is {d:.0f} mm from the outer edge") + notes.append(f"{b['kind']} base: {o.bounds[2]-o.bounds[0]:.0f} x {o.bounds[3]-o.bounds[1]:.0f} mm, one piece, min neck >= 8 mm") + ml = make_list() + notes.append('leaves to cut: ' + ', '.join(f"{ml[k]['total']} {k} ({ml[k]['placed']} placed + {ml[k]['spare']} spare)" for k in 'LMST')) + notes.append('to print: ' + ', '.join(f"{v['total']} x {k}" for k, v in ml.items() if v['kind'] == 'print') + ', 1 x STAMP (tool)') + if verbose: + for n in notes: print(' ok ', n) + for e in errs: print(' FAIL', e) + print(f'{len(PLACEMENTS)} placements, {len(STEPS)} steps, {len(errs)} problems') + return errs + +if __name__ == '__main__': + import sys; sys.exit(1 if validate() else 0) diff --git a/greenman-src/paths.py b/greenman-src/paths.py new file mode 100644 index 0000000..a3ed97c --- /dev/null +++ b/greenman-src/paths.py @@ -0,0 +1,10 @@ +"""Where things live. Everything is relative to this folder, so the generator runs from any checkout.""" +from pathlib import Path + +ROOT = Path(__file__).resolve().parent +STL_SRC = ROOT / 'stl_src' # hand-modelled STL files, plus the three that failed on the printer (test controls) +ASSETS = ROOT / 'assets' # photos, part renders, share image, kit README +WORK = ROOT / 'work' # intermediate files; not committed +OUT = ROOT / 'out' # finished kit before it is published; not committed +SITE = ROOT.parent / 'greenman' # the published page in the builds site +for d in (WORK, OUT, OUT / 'stl'): d.mkdir(parents=True, exist_ok=True) diff --git a/greenman-src/shot.py b/greenman-src/shot.py new file mode 100644 index 0000000..f60ef3c --- /dev/null +++ b/greenman-src/shot.py @@ -0,0 +1,22 @@ +"""Render an HTML file to PNG (for checking) or PDF (for the kit) with the pre-installed Chromium.""" +import sys, asyncio +from playwright.async_api import async_playwright + +async def go(src, out, width=1260, scale=1, footer=None): + async with async_playwright() as p: + try: b = await p.chromium.launch() + except Exception: b = await p.chromium.launch(channel='chrome') # no Playwright browser installed: use Google Chrome + pg = await b.new_page(viewport={'width': width, 'height': 800}, device_scale_factor=scale) + await pg.goto('file://' + src); await pg.evaluate('document.fonts.ready'); await pg.wait_for_timeout(300) + if out.endswith('.pdf'): + kw = dict(display_header_footer=True, header_template='', footer_template= + '
    ' + footer + + ' /
    ') if footer else {} + await pg.pdf(path=out, prefer_css_page_size=True, print_background=True, **kw) + else: + await pg.screenshot(path=out, full_page=True) + await b.close() + +if __name__ == '__main__': + src, out = sys.argv[1], sys.argv[2] + asyncio.run(go(src, out, width=int(sys.argv[3]) if len(sys.argv) > 3 else 1260)) diff --git a/greenman-src/stl_build.py b/greenman-src/stl_build.py new file mode 100644 index 0000000..f44b8bc --- /dev/null +++ b/greenman-src/stl_build.py @@ -0,0 +1,116 @@ +"""Assemble the print set (only parts the manifest places, plus the stamp) and test each file for printability: +watertight, sitting on the bed, no layer that starts in mid-air, and how much steep overhang it has.""" +import os, shutil, json, numpy as np, trimesh +from trimesh import creation +from shapely.geometry import Polygon, LineString +from shapely.ops import unary_union +import geom as G, manifest as M + +from paths import STL_SRC, OUT as _OUT, WORK +SRC = str(STL_SRC); OUT = str(_OUT / 'stl') + +def brow_strip(L=G.STRIP_L): + """Thin heat-formable brow strip: 2.4 mm plate, bark ridges 1.2 mm proud, low knobs. Same outline the guide draws.""" + outline = G.strip_poly(L) + parts = [creation.extrude_polygon(outline, 2.4)] + x = np.linspace(-L/2, L/2, 240); ridges = [] + for k in range(6): + ys = -8 + k*3.2 + 1.8*np.sin(x*0.09 + k) + 0.8*np.sin(x*0.31 + 2*k) + ridges.append(LineString(list(zip(x, ys))).buffer(0.55, cap_style=1)) + rp = unary_union(ridges).intersection(outline.buffer(-1.0)) + for g in (rp.geoms if rp.geom_type == 'MultiPolygon' else [rp]): + if g.area > 2: parts.append(creation.extrude_polygon(g, 3.6)) + for kx, s in [(-52, 4.2), (-26, 5.0), (-5, 3.8), (16, 5.0), (40, 4.2), (58, 3.4)]: + k = creation.icosphere(2, s); k.apply_scale([1.5, 1, 0.5]); k.apply_translation([kx, 0, 2.4]); parts.append(k) + m = trimesh.boolean.union(parts, engine='manifold') + cut = creation.box([L+40, 80, 10]); cut.apply_translation([0, 0, -5]); m = m.difference(cut) + m.apply_translation([-m.bounds[0][0], -m.bounds[0][1], -m.bounds[0][2]]); return m + +def acorn(h, r, cap_frac=0.42): + """Acorn along z: cap and stem at z<=0 end, nut tip at z=h. Cap scales are teardrops pointing at the nut tip, + so when the acorn is printed standing on its tip each scale grows out of the wall instead of starting in mid-air.""" + t = np.linspace(0, 1, 50); rr = r*np.sqrt(np.clip(1-((t-0.30)/0.74)**2, 0, 1)); rr[0] = rr[-1] = 0 + nut = creation.revolve(np.column_stack([rr, t*h]), sections=64) + ch = h*cap_frac + prof = np.array([[0, -2.5], [r*0.55, -2.5], [r*1.05, -0.5], [r*1.19, ch*0.45], [r*1.16, ch*0.85], [r*1.0, ch], [0, ch]]) + parts = [nut, creation.revolve(prof, sections=64)] + for i in range(5): + zz = -1.0 + ch*(0.08 + 0.70*i/4); rad = np.interp(zz, prof[1:-1, 1], prof[1:-1, 0]); n = int(round(2*np.pi*rad/(r*0.30))) + for j in range(n): + ang = 2*np.pi*(j + 0.5*(i % 2))/n + b = creation.icosphere(subdivisions=1, radius=r*0.17); v = b.vertices.copy(); v[v[:, 2] > 0, 2] *= 2.4; b.vertices = v + b.apply_translation([rad*np.cos(ang), rad*np.sin(ang), zz]); parts.append(b) + stem = creation.cylinder(radius=r*0.2, height=5, sections=20); stem.apply_translation([0, 0, -4.5]); parts.append(stem) + return trimesh.boolean.union(parts, engine='manifold') + +def _floor(m): + cut = creation.box([400, 400, 100]); cut.apply_translation([0, 0, -50]); m = m.difference(cut) + m.apply_translation([-m.bounds[0][0], -m.bounds[0][1], -m.bounds[0][2]]); m.merge_vertices(); m.fix_normals(); return m + +def acorn_half(h, r): + m = acorn(h, r); m.apply_transform(trimesh.transformations.rotation_matrix(np.pi/2, [1, 0, 0])); return _floor(m) + +def acorn_full(h=28, r=10, cut=4.0): + m = acorn(h, r); m.apply_transform(trimesh.transformations.rotation_matrix(np.pi, [1, 0, 0])) # nut tip down, stem up + m.apply_translation([0, 0, -m.bounds[0][2] - cut]); return _floor(m) + +GEN = {'brow_strip.stl': brow_strip, 'acorn_large_half.stl': lambda: acorn_half(30, 11), 'acorn_small_half.stl': lambda: acorn_half(22, 8), 'acorn_full.stl': acorn_full} + +FILES = { # kit file name -> (source, part id) + 'brow_strip.stl': (None, 'STRIP'), 'bark_knot.stl': ('bark_knot.stl', 'KNOT'), 'twig_forked.stl': ('twig_forked_flat.stl', 'TWIG'), + 'acorn_large_half.stl': ('acorn_large_halfback.stl', 'AL'), 'acorn_small_half.stl': ('acorn_small_halfback.stl', 'AS'), + 'acorn_full.stl': ('acorn_full_upright.stl', 'AF'), 'tendril_spiral.stl': ('tendril_spiral_small_flat.stl', 'SPIRAL'), + 'leaf_vein_stamp.stl': ('leaf_vein_stamp.stl', 'STAMP'), +} + +def check(m, layer=0.2): + r = dict(extents=[round(float(v), 1) for v in m.extents], watertight=bool(m.is_watertight), zmin=round(float(m.bounds[0][2]), 3), + volume_cm3=round(float(m.volume)/1000, 2)) + # bed contact: area of the first layer + def layer_poly(z): + sec = m.section(plane_origin=[0, 0, z], plane_normal=[0, 0, 1]) + if sec is None: return None + pl, _ = sec.to_2D(to_2D=np.eye(4)) + polys = [p for p in pl.polygons_full if p.area > 0.02] + return unary_union(polys) if polys else None + first = layer_poly(layer/2) + r['bed_contact_mm2'] = round(first.area, 0) if first is not None else 0 + # unsupported material: in each layer, whatever lies more than 0.7 mm sideways beyond the layer below has + # nothing under it (0.7 mm per 0.4 mm of height = a 60 degree overhang, the most PLA bridges reliably) + unsup, worst, prev, z = 0.0, 0.0, first, layer*1.5 + top = m.bounds[1][2] + while z < top: + cur = layer_poly(z) + if cur is not None and prev is not None: + hang = cur.difference(prev.buffer(0.7)) + a_ = sum(g.area for g in (hang.geoms if hasattr(hang, 'geoms') else [hang]) if g.area > 0.25) + unsup += a_; worst = max(worst, a_) + if cur is not None: prev = cur + z += layer*2 + r['midair_mm2'] = round(unsup, 1); r['midair_worst_layer_mm2'] = round(worst, 1) + # steep overhang: downward faces more than 55 degrees from vertical, above the first layers + n = m.face_normals; cz = m.triangles_center[:, 2] + steep = (n[:, 2] < -np.sin(np.radians(55))) & (cz > 0.5) + r['overhang_mm2'] = round(float(m.area_faces[steep].sum()), 0) + why = [w for w, bad in (('not watertight', not r['watertight']), ('not on the bed', abs(r['zmin']) > 0.01), ('prints in mid-air', r['midair_mm2'] > 12), ('too little bed contact', r['bed_contact_mm2'] < 20)) if bad] + r['verdict'] = ('FAIL: ' + ', '.join(why)) if why else ('ok, supports optional' if r['midair_mm2'] > 3 else 'ok, no supports') + return r + +def build(): + ml = M.make_list(); report = {} + for name, (src, pid) in FILES.items(): + if name in GEN: m = GEN[name](); m.export(f'{OUT}/{name}') + else: shutil.copy(f'{SRC}/{src}', f'{OUT}/{name}'); m = trimesh.load(f'{OUT}/{name}') + r = check(m); r['qty'] = 1 if pid == 'STAMP' else ml[pid]['total']; r['part'] = pid; report[name] = r + print(f"{name:24s} x{r['qty']} {str(r['extents']):22s} bed {r['bed_contact_mm2']:6.0f} mm2 mid-air {r['midair_mm2']:5.1f} steep overhang {r['overhang_mm2']:5.0f} {r['verdict']}") + # every printed part in the manifest has a file, and no file is for an unplaced part + need = {k for k, v in ml.items() if v['kind'] == 'print'}; have = {pid for _, pid in FILES.values()} - {'STAMP'} + assert need == have, (need ^ have) + # control: the two files that failed on the printer must fail this test + for bad in ('tendril_spiral_small.stl', 'tendril_spiral.stl', 'twig_forked.stl'): + rb = check(trimesh.load(f'{SRC}/{bad}')); print(f"control {bad:28s} mid-air {rb['midair_mm2']:6.1f} {rb['verdict']}"); assert rb['verdict'].startswith('FAIL'), 'the test must reject the files that failed on the printer' + json.dump(report, open(WORK / 'stl_report.json', 'w'), indent=1) + return report + +if __name__ == '__main__': + build() diff --git a/greenman-src/stl_src/bark_knot.stl b/greenman-src/stl_src/bark_knot.stl new file mode 100644 index 0000000..2826c00 Binary files /dev/null and b/greenman-src/stl_src/bark_knot.stl differ diff --git a/greenman-src/stl_src/leaf_vein_stamp.stl b/greenman-src/stl_src/leaf_vein_stamp.stl new file mode 100644 index 0000000..0e80ba4 Binary files /dev/null and b/greenman-src/stl_src/leaf_vein_stamp.stl differ diff --git a/greenman-src/stl_src/tendril_spiral.stl b/greenman-src/stl_src/tendril_spiral.stl new file mode 100644 index 0000000..8749cb6 Binary files /dev/null and b/greenman-src/stl_src/tendril_spiral.stl differ diff --git a/greenman-src/stl_src/tendril_spiral_small.stl b/greenman-src/stl_src/tendril_spiral_small.stl new file mode 100644 index 0000000..f119af8 Binary files /dev/null and b/greenman-src/stl_src/tendril_spiral_small.stl differ diff --git a/greenman-src/stl_src/tendril_spiral_small_flat.stl b/greenman-src/stl_src/tendril_spiral_small_flat.stl new file mode 100644 index 0000000..b1ad898 Binary files /dev/null and b/greenman-src/stl_src/tendril_spiral_small_flat.stl differ diff --git a/greenman-src/stl_src/twig_forked.stl b/greenman-src/stl_src/twig_forked.stl new file mode 100644 index 0000000..ab76d52 Binary files /dev/null and b/greenman-src/stl_src/twig_forked.stl differ diff --git a/greenman-src/stl_src/twig_forked_flat.stl b/greenman-src/stl_src/twig_forked_flat.stl new file mode 100644 index 0000000..8485e5c Binary files /dev/null and b/greenman-src/stl_src/twig_forked_flat.stl differ diff --git a/greenman/dl/GreenMan_build_guide.pdf b/greenman/dl/GreenMan_build_guide.pdf index f5b5493..f648968 100644 Binary files a/greenman/dl/GreenMan_build_guide.pdf and b/greenman/dl/GreenMan_build_guide.pdf differ diff --git a/greenman/dl/GreenMan_mask_kit.zip b/greenman/dl/GreenMan_mask_kit.zip index 1ab38f3..dcbf00b 100644 Binary files a/greenman/dl/GreenMan_mask_kit.zip and b/greenman/dl/GreenMan_mask_kit.zip differ diff --git a/greenman/dl/GreenMan_painting_guide.pdf b/greenman/dl/GreenMan_painting_guide.pdf index 1ad9414..4edb0be 100644 Binary files a/greenman/dl/GreenMan_painting_guide.pdf and b/greenman/dl/GreenMan_painting_guide.pdf differ diff --git a/greenman/dl/GreenMan_print_files.zip b/greenman/dl/GreenMan_print_files.zip index 991ceac..7f8a577 100644 Binary files a/greenman/dl/GreenMan_print_files.zip and b/greenman/dl/GreenMan_print_files.zip differ diff --git a/greenman/dl/GreenMan_templates.pdf b/greenman/dl/GreenMan_templates.pdf index 65c1a8a..d9ef3dc 100644 Binary files a/greenman/dl/GreenMan_templates.pdf and b/greenman/dl/GreenMan_templates.pdf differ diff --git a/greenman/index.html b/greenman/index.html index a5f0bed..c2c4f48 100644 --- a/greenman/index.html +++ b/greenman/index.html @@ -17,36 +17,35 @@ - + -

    ← Kestrel’s Builds

    Build guide

    Green Man mask

    @@ -93,15 +90,15 @@ table.dense { font-size: 0.8rem; min-width: 760px; }

    Everything else is glued to that band in layers. Seven large leaves stand up from the band and rake back over the head: the four outer ones glued to its back face, the three centre ones to its front. A printed bark strip sits across the front, and a knot covers the centre stems. Two twigs and a row of medium leaves stand in front of the large ones. Acorns cover the strap anchors at the temples. Leaves and tendrils hang from the cheek tabs into the beard.

    Assembly order follows from what overlaps what. Each step says why it comes where it does.

    Two side views through the maskOn the centre linecentre large leafits stem: on the FRONT,under the knotknotbrow stripfoam bandglassesnose leafforehead30 mm to one sideouter large leaf: stem on the BACKtwig: flat side on the FRONTfront-row leaf: on the FRONT,in front of the twigbrow stripfoam bandglasses
    Two slices through the mask, seen from the wearer’s left, with the front of the mask to the right.
    -
    Front: every part in place.
    Back: strap anchors and the stems of the four outer large leaves.

    Materials and tools

    MaterialHow muchUsed for
    6 mm EVA foamone piece 21 × 15 cmbase
    2 mm EVA foamabout 1,250 cm² laid out tightly; one 30 × 45 cm sheet, or three letter-size sheets27 leaves, 2 strap patches
    PLA filamentabout 90 g16 parts and the vein stamp
    Flat elastic, 19 mm (¾ in) wide60 cm; add 30 cm for the optional top strapstrap
    Fishing line, or thin floral wire20 cmhanging acorns
    Painter’s tapemasking the strap before sealing
    Contact cementsmall can; Barge or Weldwood original, not the gel or water-based kindfoam to foam, printed parts to foam
    Hot glue, high-temperature4 to 5 sticksleaf stems, elastic tails, hanging lines
    Card stock4 sheetstemplates
    120-grit sandpaper, rubbing alcoholroughing and cleaning printed parts before gluing

    Tools. Craft knife with spare blades, cutting mat, heat gun, hot-glue gun, a small brush for the cement, silver or white pen for tracing on dark foam, a pin, scissors, a heat-proof glove, two towels, ruler. A printer for the templates and a 3D printer with a bed of at least 150 × 135 mm.

    +
    Front: every part in place.
    Back: strap anchors and the stems of the four outer large leaves.

    Materials and tools

    MaterialHow muchUsed for
    6 mm EVA foamone piece 21 × 15 cmbase
    2 mm EVA foamabout 1,250 cm² laid out tightly; one 30 × 45 cm sheet, or three letter-size sheets27 leaves, 2 strap patches
    PLA filamentabout 90 g16 parts and the vein stamp
    Flat elastic, 19 mm (¾ in) wide60 cm; add 30 cm for the optional top strapstrap
    Fishing line, or thin floral wire20 cmhanging acorns
    Painter’s tapemasking the strap before sealing
    Contact cementsmall can; Barge or Weldwood original, not the gel or water-based kindfoam to foam, printed parts to foam
    Hot glue, high-temperature4 to 5 sticksleaf stems, elastic tails, hanging lines
    Card stock4 sheetstemplates
    120-grit sandpaper, rubbing alcoholroughing and cleaning printed parts before gluing

    Tools. Craft knife with spare blades, cutting mat, heat gun, hot-glue gun, a small brush for the cement, silver or white pen for tracing on dark foam, a pin, scissors, a heat-proof glove, two towels, ruler. A printer for the templates and a 3D printer with a bed of at least 150 × 135 mm.

    Paint and sealer are listed in the painting guide.

    Everything you will make

    This list is complete, and every item on it ends up on the mask. The only extras are three spare leaves, which you keep unpainted for repairs.

    QtyPartMade fromWhere it goes
    1Mask base6 mm EVA foameverything is glued to it
    2Strap reinforcement patch2 mm EVA foam, 30 x 36 mmback of the band, one behind each strap slit
    7Large oak leaf, 95 mm2 mm EVA foam3 crown, centre (on the front), 4 crown, outer (on the back)
    9Medium oak leaf, 70 mm2 mm EVA foam6 crown, front row, 2 cheeks, 1 spare
    7Small oak leaf, 48 mm2 mm EVA foam4 cheeks, 1 nose, 2 spare
    4Tip leaf, 30 mm2 mm EVA foam4 tendril ends
    1Brow stripbrow_strip.stl1 front of the band
    1Bark knotbark_knot.stl1 centre of the band
    2Forked twigtwig_forked.stl2 in the crown, between the leaf rows
    4Acorn, large halfacorn_large_half.stl4 temple clusters
    2Acorn, small halfacorn_small_half.stl2 temple clusters
    2Acorn, full (hangs on a line)acorn_full.stl2 hanging beside the cheeks
    4Tendril spiraltendril_spiral.stl4 on the lower cheek tabs, 2 per side
    1Elastic strap, 19-25 mm wideflat elastic, about 45 cmthrough both slits and around the back of the head
    2Hanging line, 8 cmfishing line or thin wireone for each hanging acorn

    Plan your time

    WhenWhatHands-on
    Evening 1Start the print (stamp and brow strip first). Print the templates, paper-fit the base, cut and heat-form it. Fit the strap.1½ h
    Evening 2Cut, vein and curl the 27 leaves. Clean up the printed parts and heat-form the brow strip.2 h
    Evening 3Assemble (11 steps). Seal and paint, following the painting guide. Hang overnight.2 h + 3 h
    Next morningFinger-test the paint, pack the spare leaves and a small glue gun, wear it.5 min

    Printing takes the longest, though none of the evening 1 work or the leaf cutting waits on it. Start it first and let it run. If a print fails overnight you still have a day of slack.

    Stage A · Print

    FilePrintSizeSupportsNotes
    brow_strip.stl1136 × 23.6 × 4.9 mmnonePrints flat; heat-formed to the forehead later. PLA only.
    bark_knot.stl142 × 42 × 14.2 mmnoneFlat back.
    twig_forked.stl292.9 × 43.1 × 7.6 mmnoneFlat underside along its whole length.
    acorn_large_half.stl429.7 × 37 × 14.9 mmnoneLies on its flat back.
    acorn_small_half.stl221.6 × 29 × 10.8 mmnoneLies on its flat back.
    acorn_full.stl227 × 27 × 31 mmnoneStands on a 13 mm flat, stem up. Use a brim.
    tendril_spiral.stl464.9 × 25.9 × 6.8 mmnoneFlat underside along its whole length.
    leaf_vein_stamp.stl150 × 121 × 4.2 mmnoneA tool for the leaves. Print it first.
    brow_strip.stl
    brow strip
    bark_knot.stl
    bark knot
    twig_forked.stl
    twig forked
    acorn_large_half.stl
    acorn large half
    acorn_small_half.stl
    acorn small half
    acorn_full.stl
    acorn full
    tendril_spiral.stl
    tendril spiral
    leaf_vein_stamp.stl
    leaf vein stamp

    Settings. PLA, 0.4 mm nozzle, 0.2 mm layers, 3 walls, 15% infill, brim on. No supports on anything. For the brow strip use 4 top and bottom layers, because it has to bend later without snapping.

    Print order. First the vein stamp and the brow strip, so the leaf work is never waiting on the printer. Then everything else, on as many plates as your bed needs. Expect the full set to take most of a day on a slow printer.

    Scaled your base? If you print the base template at anything other than 100% (see Stage B), scale brow_strip.stl by the same percentage in the slicer.

    Every part has a flat underside along its full length. If your slicer shows any part of a model floating above the bed, the model has been rotated, so lay it back on its flat face.

    Stage B · Base

    1. Print the template pages on card stock at 100%. Measure the 100 mm bar on every page before cutting anything.
    2. Paper fit. Cut the base out of paper, hold it to your face and put your glasses on over it. The band should lie on your forehead with the frame’s top bar along its lower edge, the nose strip should drop between the nose pads, and each cheek tab should sit outside the frame with the arm passing over it. If your frame is not close to 140 mm wide, reprint the base page only at the scale in its fit table. On that reprint the bar will measure the scaled length (93 mm at 93%), the brow strip must be printed at the same scale, and the distances given in the assembly steps shrink or grow by the same few percent; the drawings still show where everything goes.
    3. Trace onto 6 mm foam and cut with the blade upright. Fold the template on its centre line and cut both halves together if you want exact symmetry.
    4. Heat-form. Warm the band with the heat gun for a few seconds at a time and press it to your forehead (through a cloth) until it holds the curve. Do the same to bend each cheek tab in against your cheekbone.
    5. Score the back of the nose strip lightly where it meets the band, so it drapes down your nose.
    6. Put it on under your glasses again. It should sit there on its own for a moment before it slides.
    -
    The formed base behind the glasses. (This photo was taken after the strap went on in Stage C.) The frame’s top bar runs along the lower edge of the band.
    The formed base behind the glasses. (This photo was taken after the strap went on in Stage C.) The frame’s top bar runs along the lower edge of the band.

    Stage C · Strap

    12
    Back view (the side that touches your face). Red outline: glued in this step. Numbers: the order. Grey: already on.
    C

    Strap

    25 min + cure · Contact cement for the patches, hot glue for the tails
    1 elastic strap2 strap patches
    1. Cut two 30 × 36 mm patches from 2 mm foam (outline on template page 4). Lay the paper base template on the formed foam base and push a pin through both ends of each red slit to mark them on the foam.
    2. Cement a patch to the back of the band, centred over each pair of pin marks. Coat both surfaces, wait until touch-dry, press. Let it cure at least 30 minutes.
    3. Cut each slit through band and patch together with a fresh blade: two parallel cuts 20 mm long and 3 mm apart, then lift out the sliver. Cutting through both layers at once is what keeps the slit from stretching.
    4. Bring the end of the elastic around the outer edge of the band onto the front, and feed it through the slit from front to back. Pull about 50 mm through. The tail comes out on the back; turn it outward and hot-glue it to the underside of the strap, the side that faces your head, just past the edge of the band. Glue elastic to elastic and leave the foam free of glue.
    5. Do one side, put the mask and your glasses on, pull the strap snug around your head, mark it, then do the other side. Go slightly snug: elastic relaxes over a few hours. This sets the strap length for good; the ends are about to be covered.
    Before moving on Mask stays put when you shake your head. Glasses go on over it and come off without dragging it.
    Strap anchor seen from aboveBACK (against your face)FRONT6 mm band2 mm patchslit, 20 mm in from the edgeouter edge of the bandstrap, from the back of your headtail (grey): comes out of the slit on the back and turns outwardglue the tail to the underside of the strapthe acorn cluster later covers this run
    The strap anchor seen from above. The elastic loops around the 20 mm of foam between the slit and the edge, and the tail is glued to the strap behind the band.
    Optional second strap: decide now. One strap, sitting at brow level, holds the mask comfortably through a full day. If you want a second one as insurance, fit it now, the same way: a patch on the back at the dashed slit marked top-centre on the template, a slit through both, 30 cm of elastic running over the top of your head and stitched to the main strap behind it. It cannot be added later, because the knot and the centre leaf will cover that spot. It can always be snipped off.

    Stage D · Leaves

    1. Trace and cut exactly the numbers printed on the template pages: 7 large, 9 medium, 7 small, 4 tip. Tick the boxes as you go. Turn the card over for every other leaf.
    2. Veins. Warm a leaf for 3 to 5 seconds until it just goes limp, lay it on a firm surface and press the stamp into it hard for about 5 seconds. For the large leaves stamp the upper and lower halves separately. For small and tip leaves use just the tip end of the stamp. No stamp yet? Score the veins with a ballpoint pen on warm foam.
    3. Cup and curl while it is still warm: press your thumb along the midrib to cup it, then bend the tip back. Crown leaves get a strong curl; cheek and nose leaves only a slight one. All shaping happens now. Once leaves are glued on, a heat gun would soften the hot glue and the printed parts.
    4. Sort into piles by where they go: crown, outer (4 large leaves), crown, centre (3 large leaves), front row (6 medium leaves), cheeks (2 medium leaves, 4 small leaves), nose (1 small leaf), tendrils (4 tip leaves), spares (1 medium leaf, 2 small leaves). Put the spares away now, unpainted.
    -
    Cut leaves, the vein stamp, and printed parts, ready for assembly.
    Cut leaves, the vein stamp, and printed parts, ready for assembly.

    Stage E · Prepare the printed parts

    1. Snap off the brims. Sand every flat back with 120 grit until it is dull, then wipe with alcohol. Contact cement will not hold on glossy PLA.
    2. Form the brow strip. Warm it from the back on the gun’s low setting, moving constantly, until it starts to sag (10 to 15 seconds). Lay it on the curved band, press from the centre outward with a gloved hand, and hold for 30 seconds. Bend in stages; forcing the ends cold will crack it. Do not glue it yet.
    3. Dry-fit everything against the front-view drawing in “How it goes together”: strip, knot, acorns over the strap, a few leaves held in place. A part that does not fit your base is much cheaper to notice now.

    Stage F · Assembly

    11 steps, about two hours. Hot glue goes on leaf stems, so every blade can still be lifted to reach behind it. The brow strip and acorns are pressed on first, while the mask can still lie flat. The crown is built up after that, starting with the large leaves. Work with glasses within reach; several checks need them.

    1
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    1

    Brow strip

    15 min · Contact cement
    1 brow strip
    1. The brow strip was heat-formed to the curve of the band in Stage E. Hold it in place dry on the front of the band first: centred, lower edge about 5 mm above the lower edge of the band, each end stopping just short of a strap slit.
    2. Brush contact cement on the back of the strip and on the band where it sits. Wait about 10 minutes until both are touch-dry.
    3. Press on from the centre outward, backing the band with your other hand. You get one try; contact cement grabs at once.
    Why now
    • After strap: the strip is pressed on hard; do it while the band is bare and can be backed with your hand.
    Before moving on No edge of the strip lifts when you flex the band gently, and neither end covers a strap slit.
    123456
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    2

    Acorn clusters

    15 min · Contact cement; hot glue where acorn meets acorn
    4 large acorn halves2 small acorn halves
    1. One cluster per temple, covering the 20 mm of strap that crosses the front of the band. Contact cement holds on the elastic as well as on the foam.
    2. Acorn 1 (large): flat on the band over the strap, cap pointing up and slightly out, with its inboard edge on bare foam. Acorn 2 (large): above and inboard of it, tilted the other way, leaning on acorn 1. Acorn 3 (small): outboard, bridging the two.
    3. Keep the whole cluster at least 4 mm above the lower edge of the band. The glasses arm rests just below.
    4. Press each one with your hand behind the band.
    Why now
    • After strap: the clusters cover the strap where it crosses the front of the band.
    • After brow strip: the clusters butt against the ends of the strip.
    Before moving on With glasses on, each arm passes under its cluster without touching it.
    123
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    3

    Crown, centre large leaves

    10 min · Hot glue, on the stem only
    3 large leaves
    1. Rest the mask face-up over a rolled towel. The three centre leaves glue by their stems to the front of the band, in the upper middle where the knot will go later.
    2. Leaf 1 stands upright on the centre line with its blade starting level with the top edge of the band. It is the tallest leaf on the mask.
    3. Leaves 2 and 3 go 17 mm to each side of it, leaning out 10°, and about 6 mm lower.
    4. Hold each leaf raked back about 30° over where your head will be until its glue has cooled, because this is the only chance to set the lean.
    5. If you fitted the optional top strap, glue the stem of leaf 1 just to one side of it.
    6. From here on, never rest the mask on its crown. Lay it over a rolled towel, or hang it by the strap.
    Why now
    • After brow strip: their stems sit on the front of the band above the strip.
    • After acorn clusters: the clusters are pressed on hard, which is easier before any leaves stand on the band.
    Before moving on Three large leaves stand in a narrow fan at the centre, raked back, with their stems side by side on the front of the band.
    1234
    Back view (the side that touches your face). Red outline: glued in this step. Numbers: the order. Grey: already on.
    4

    Crown, outer large leaves

    10 min · Hot glue, on the stem only
    4 large leaves
    1. Turn the mask face-down over the rolled towel, with the centre leaves hanging clear of it. The four outer large leaves glue by their stems to the back of the band, leaf faces toward the front.
    2. Leaves 1 and 2: one 36 mm to each side of the centre line, leaning out 22°. Set them so the leaf blade starts level with the top edge of the band.
    3. Leaves 3 and 4: 52 mm each side, leaning out 30°, and 10 mm lower on the band.
    4. Keep every stem inboard of the strap patches. Rake each leaf back to match the centre three and hold it until the glue has cooled. Their inner edges tuck behind the edges of the centre leaves.
    Why now
    • After crown, centre large leaves: the centre leaves set the height and rake that the outer ones are matched to.
    Before moving on From the front, seven large leaves read as one fan: a tall centre leaf with three stepping down on each side.
    1
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    5

    Bark knot

    5 min + tack time · Contact cement
    1 bark knot
    1. Turn the mask face-up again. The knot sits on the front of the band at the centre line, on top of the three centre stems, with its lower edge touching the top edge of the brow strip. It overhangs the top edge of the band by about 14 mm, which is intended.
    2. Brush contact cement on the back of the knot and on the stems and foam it will cover. Wait until touch-dry.
    3. Press it on with your other hand flat behind the band. No stems are glued to the back at the centre, so the band can be backed properly.
    Why now
    • After crown, centre large leaves: the knot sits on top of the three centre stems and hides them.
    • After brow strip: its lower edge touches the top edge of the strip.
    Before moving on Knot and strip read as one piece of wood, and the three centre stems are hidden.
    12
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    6

    Twigs

    10 min · Contact cement on the band, a dab of hot glue higher up
    2 twigs
    1. Mask face-up over the rolled towel. The twigs are flat on one side, and that flat side goes against the foam with the bark facing out.
    2. Each twig stands on the front of the band, its thick end just above the brow strip and about 30 mm out from the centre line, beside the knot. Roughly 22 mm of it lies on the band.
    3. Cement that lower part to the band. Above the band the twig lies against the front of the large leaves, so add one dab of hot glue where it touches a leaf to stop it rattling.
    4. The forked ends should reach up between the leaves. The front row goes on later and covers the thick ends.
    Why now
    • After crown, outer large leaves: each twig lies up the front of the large leaves, so all seven need to be in place.
    Before moving on Both twigs sit flat on the band, roughly mirrored, with the bark side facing forward.
    123456
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    7

    Crown, front row

    15 min · Hot glue, on the stem only
    6 medium leaves
    1. Six medium leaves, stems glued to the front of the band in the space directly above the brow strip, either side of each twig.
    2. Leaves 1 and 2: either side of the knot, about 24 mm from the centre line, leaning out 12°. Their inner lobes rest on the sides of the knot; the middle of the knot stays visible between them.
    3. Leaves 3 and 4: 42 mm out, leaning 27°, their blades crossing in front of the twigs. Leaves 5 and 6: 58 mm out, leaning 42°, with their blades resting on the inner edge of each acorn cluster.
    4. Hold each one leaning back toward the large leaves until its glue has cooled. Where a leaf rides up over the knot or an acorn it will stand a little proud, which looks natural.
    Why now
    • After bark knot: the two middle leaves fan around the knot and overlap its sides.
    • After acorn clusters: the outer leaves lean over the inner edge of each cluster.
    • After twigs: the front-row leaves cover the thick ends of the twigs.
    • After crown, centre large leaves: the front row leans back onto the large leaves.
    Before moving on From the side there is little or no daylight between the front row and the large leaves behind it.
    12
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    8

    Hanging acorns

    10 min · Hot glue
    2 hanging lines2 full acorns
    1. Each full acorn hangs from an 8 cm length of fishing line. Thin wire works just as well. Tie one end around the stem of the acorn, tight under the cap, and lock the knot with a drop of hot glue. With wire, wrap it twice and twist it closed.
    2. Hot-glue the last 10 mm of the free end to the front of the cheek tab, pointing up, on the outer half of the tab about 12 mm below the lower edge of the band. That is just under where the glasses arm rests.
    3. Lead the line downward and outward from there, so the acorn hangs past the outer edge of the cheek tab, level with the lens. Fishing line lets the acorn swing; wire can be bent to hold it in one place.
    Why now
    • After acorn clusters: so the hanging acorn can be judged against the cluster above it.
    Before moving on The anchor holds when you tug the acorn. With glasses on, the line does not touch the arm.
    1234
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    9

    Tendrils

    15 min · Hot glue for the tip leaves, contact cement for the tendrils
    4 tendrils4 tip leaves
    1. On the bench first: hot-glue the stem of one tip leaf to the curled end of each of the four tendrils.
    2. Each cheek tab takes two tendrils side by side on the front of its lower third, each glued flat by the first 8 mm of its straight end. Flip the acorn up out of the way while you work.
    3. Tendril 1 goes on the inner half of the tab and curls toward the nose. Tendril 2 goes on the outer half and curls toward the ear. They fan apart and must not cross. Each one is rigid and 7 mm thick, so a crossed tendril cannot sit flat.
    Why now
    • After hanging acorns: the cheek tab is still bare except for the line, so both tendril stems can be pressed flat.
    Before moving on All four hang freely below the cheek tabs, none crosses another, and none touches a lens.
    123456
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    10

    Cheek leaves

    10 min · Hot glue, on the stem only
    2 medium leaves4 small leaves
    1. Three leaves per side, tips down, stems side by side across the top of the cheek tab. Keep the tops of the stems just below the line the glasses arm rests on. Keep the acorn flipped up until all three are on.
    2. Leaf 1 (medium): centre of the tab, straight down.
    3. Leaf 2 (small): toward the lens, straight down. Its blade must stay off the glass.
    4. Leaf 3 (small): toward the ear, tip angled outward about 8°. Its stem and the stem of leaf 1 go over the line and hide the anchor.
    5. Let the acorn drop. It hangs in front of the outer lobes of leaves 1 and 3. The tendrils hang out below all three.
    Why now
    • After hanging acorns: two of the leaf stems go over the line and hide it.
    • After tendrils: the leaf blades hang in front of the tendril stems; glued first, the leaves would be in the way.
    Before moving on Glasses on: both arms sit flat, no cheek leaf shows through a lens, and each acorn swings freely.
    1
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    11

    Nose leaf

    5 min · Hot glue, on the stem only
    1 small leaf
    1. One small leaf, tip down, on the front of the nose strip of the base. The stem glues at the very top of the nose strip and runs up under where the bridge of the glasses sits.
    2. The leaf is wider than the nose strip, so its side lobes hang free and show at the inner corners of the lenses, as in the photos. If that bothers you, trim the two widest lobes.
    3. Press it to follow the curve of your nose while the glue is warm.
    Why now
    • After brow strip: its stem sits just under the brow strip.
    Before moving on Glasses still seat on your nose as they did before. If they ride up, thin the stem with a blade.

    Final fit

    • Put it on, then your glasses. Walk around, look down, shake your head.
    • Both glasses arms sit flat and pass under the acorn clusters.
    • Nothing presses on a lens. (The side lobes of the nose leaf do show at the inner corners.)
    • The crown does not nod forward. If it does and you fitted the top strap, shorten it a little.
    • Flex the crown gently and look for any leaf that moves at its stem. Re-glue it now.
    +
    The formed base behind the glasses. (This photo was taken after the strap went on in Stage C.) The frame’s top bar runs along the lower edge of the band.
    The formed base behind the glasses. (This photo was taken after the strap went on in Stage C.) The frame’s top bar runs along the lower edge of the band.

    Stage C · Strap

    12
    Back view (the side that touches your face). Red outline: glued in this step. Numbers: the order. Grey: already on.
    C

    Strap

    25 min + cure · Contact cement for the patches, hot glue for the tails
    1 elastic strap2 strap patches
    1. Cut two 30 × 36 mm patches from 2 mm foam (outline on template page 4). Lay the paper base template on the formed foam base and push a pin through both ends of each red slit to mark them on the foam.
    2. Cement a patch to the back of the band, centred over each pair of pin marks. Coat both surfaces, wait until touch-dry, press. Let it cure at least 30 minutes.
    3. Cut each slit through band and patch together with a fresh blade: two parallel cuts 20 mm long and 3 mm apart, then lift out the sliver. Cutting through both layers at once is what keeps the slit from stretching.
    4. Bring the end of the elastic around the outer edge of the band onto the front, and feed it through the slit from front to back. Pull about 50 mm through. The tail comes out on the back; turn it outward and hot-glue it to the underside of the strap, the side that faces your head, just past the edge of the band. Glue elastic to elastic and leave the foam free of glue.
    5. Do one side, put the mask and your glasses on, pull the strap snug around your head, mark it, then do the other side. Go slightly snug: elastic relaxes over a few hours. This sets the strap length for good; the ends are about to be covered.
    Before moving on Mask stays put when you shake your head. Glasses go on over it and come off without dragging it.
    Strap anchor seen from aboveBACK (against your face)FRONT6 mm band2 mm patchslit, 20 mm in from the edgeouter edge of the bandstrap, from the back of your headtail (grey): comes out of the slit on the back and turns outwardglue the tail to the underside of the strapthe acorn cluster later covers this run
    The strap anchor seen from above. The elastic loops around the 20 mm of foam between the slit and the edge, and the tail is glued to the strap behind the band.
    Optional second strap: decide now. One strap, sitting at brow level, holds the mask comfortably through a full day. If you want a second one as insurance, fit it now, the same way: a patch on the back at the dashed slit marked top-centre on the template, a slit through both, 30 cm of elastic running over the top of your head and stitched to the main strap behind it. It cannot be added later, because the knot and the centre leaf will cover that spot. It can always be snipped off.

    Stage D · Leaves

    1. Trace and cut exactly the numbers printed on the template pages: 7 large, 9 medium, 7 small, 4 tip. Tick the boxes as you go. Turn the card over for every other leaf.
    2. Veins. Warm a leaf for 3 to 5 seconds until it just goes limp, lay it on a firm surface and press the stamp into it hard for about 5 seconds. For the large leaves stamp the upper and lower halves separately. For small and tip leaves use just the tip end of the stamp. No stamp yet? Score the veins with a ballpoint pen on warm foam.
    3. Cup and curl while it is still warm: press your thumb along the midrib to cup it, then bend the tip back. Crown leaves get a strong curl; cheek and nose leaves only a slight one. All shaping happens now. Once leaves are glued on, a heat gun would soften the hot glue and the printed parts.
    4. Sort into piles by where they go: crown, outer (4 large leaves), crown, centre (3 large leaves), front row (6 medium leaves), cheeks (2 medium leaves, 4 small leaves), nose (1 small leaf), tendrils (4 tip leaves), spares (1 medium leaf, 2 small leaves). Put the spares away now, unpainted.
    +
    Cut leaves, the vein stamp, and printed parts, ready for assembly.
    Cut leaves, the vein stamp, and printed parts, ready for assembly.

    Stage E · Prepare the printed parts

    1. Snap off the brims. Sand every flat back with 120 grit until it is dull, then wipe with alcohol. Contact cement will not hold on glossy PLA.
    2. Form the brow strip. Warm it from the back on the gun’s low setting, moving constantly, until it starts to sag (10 to 15 seconds). Lay it on the curved band, press from the centre outward with a gloved hand, and hold for 30 seconds. Bend in stages; forcing the ends cold will crack it. Do not glue it yet.
    3. Dry-fit everything against the front-view drawing in “How it goes together”: strip, knot, acorns over the strap, a few leaves held in place. A part that does not fit your base is much cheaper to notice now.

    Stage F · Assembly

    11 steps, about two hours. Hot glue goes on leaf stems, so every blade can still be lifted to reach behind it. The brow strip and acorns are pressed on first, while the mask can still lie flat. The crown is built up after that, starting with the large leaves. Work with glasses within reach; several checks need them.

    1
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    1

    Brow strip

    15 min · Contact cement
    1 brow strip
    1. The brow strip was heat-formed to the curve of the band in Stage E. Hold it in place dry on the front of the band first: centred, lower edge about 5 mm above the lower edge of the band, each end stopping just short of a strap slit.
    2. Brush contact cement on the back of the strip and on the band where it sits. Wait about 10 minutes until both are touch-dry.
    3. Press on from the centre outward, backing the band with your other hand. You get one try; contact cement grabs at once.
    Why now
    • After strap: the strip is pressed on hard; do it while the band is bare and can be backed with your hand.
    Before moving on No edge of the strip lifts when you flex the band gently, and neither end covers a strap slit.
    123456
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    2

    Acorn clusters

    15 min · Contact cement; hot glue where acorn meets acorn
    4 large acorn halves2 small acorn halves
    1. One cluster per temple, covering the 20 mm of strap that crosses the front of the band. Contact cement holds on the elastic as well as on the foam.
    2. Acorn 1 (large): flat on the band over the strap, cap pointing up and slightly out, with its inboard edge on bare foam. Acorn 2 (large): above and inboard of it, tilted the other way, leaning on acorn 1. Acorn 3 (small): outboard, bridging the two.
    3. Keep the whole cluster at least 4 mm above the lower edge of the band. The glasses arm rests just below.
    4. Press each one with your hand behind the band.
    Why now
    • After strap: the clusters cover the strap where it crosses the front of the band.
    • After brow strip: the clusters butt against the ends of the strip.
    Before moving on With glasses on, each arm passes under its cluster without touching it.
    123
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    3

    Crown, centre large leaves

    10 min · Hot glue, on the stem only
    3 large leaves
    1. Rest the mask face-up over a rolled towel. The three centre leaves glue by their stems to the front of the band, in the upper middle where the knot will go later.
    2. Leaf 1 stands upright on the centre line with its blade starting level with the top edge of the band. It is the tallest leaf on the mask.
    3. Leaves 2 and 3 go 17 mm to each side of it, leaning out 10°, and about 6 mm lower.
    4. Hold each leaf raked back about 30° over where your head will be until its glue has cooled, because this is the only chance to set the lean.
    5. If you fitted the optional top strap, glue the stem of leaf 1 just to one side of it.
    6. From here on, never rest the mask on its crown. Lay it over a rolled towel, or hang it by the strap.
    Why now
    • After brow strip: their stems sit on the front of the band above the strip.
    • After acorn clusters: the clusters are pressed on hard, which is easier before any leaves stand on the band.
    Before moving on Three large leaves stand in a narrow fan at the centre, raked back, with their stems side by side on the front of the band.
    1234
    Back view (the side that touches your face). Red outline: glued in this step. Numbers: the order. Grey: already on.
    4

    Crown, outer large leaves

    10 min · Hot glue, on the stem only
    4 large leaves
    1. Turn the mask face-down over the rolled towel, with the centre leaves hanging clear of it. The four outer large leaves glue by their stems to the back of the band, leaf faces toward the front.
    2. Leaves 1 and 2: one 36 mm to each side of the centre line, leaning out 22°. Set them so the leaf blade starts level with the top edge of the band.
    3. Leaves 3 and 4: 52 mm each side, leaning out 30°, and 10 mm lower on the band.
    4. Keep every stem inboard of the strap patches. Rake each leaf back to match the centre three and hold it until the glue has cooled. Their inner edges tuck behind the edges of the centre leaves.
    Why now
    • After crown, centre large leaves: the centre leaves set the height and rake that the outer ones are matched to.
    Before moving on From the front, seven large leaves read as one fan: a tall centre leaf with three stepping down on each side.
    1
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    5

    Bark knot

    5 min + tack time · Contact cement
    1 bark knot
    1. Turn the mask face-up again. The knot sits on the front of the band at the centre line, on top of the three centre stems, with its lower edge touching the top edge of the brow strip. It overhangs the top edge of the band by about 14 mm, which is intended.
    2. Brush contact cement on the back of the knot and on the stems and foam it will cover. Wait until touch-dry.
    3. Press it on with your other hand flat behind the band. No stems are glued to the back at the centre, so the band can be backed properly.
    Why now
    • After crown, centre large leaves: the knot sits on top of the three centre stems and hides them.
    • After brow strip: its lower edge touches the top edge of the strip.
    Before moving on Knot and strip read as one piece of wood, and the three centre stems are hidden.
    12
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    6

    Twigs

    10 min · Contact cement on the band, a dab of hot glue higher up
    2 twigs
    1. Mask face-up over the rolled towel. The twigs are flat on one side, and that flat side goes against the foam with the bark facing out.
    2. Each twig stands on the front of the band, its thick end just above the brow strip and about 30 mm out from the centre line, beside the knot. Roughly 22 mm of it lies on the band.
    3. Cement that lower part to the band. Above the band the twig lies against the front of the large leaves, so add one dab of hot glue where it touches a leaf to stop it rattling.
    4. The forked ends should reach up between the leaves. The front row goes on later and covers the thick ends.
    Why now
    • After crown, outer large leaves: each twig lies up the front of the large leaves, so all seven need to be in place.
    Before moving on Both twigs sit flat on the band, roughly mirrored, with the bark side facing forward.
    123456
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    7

    Crown, front row

    15 min · Hot glue, on the stem only
    6 medium leaves
    1. Six medium leaves, stems glued to the front of the band in the space directly above the brow strip, either side of each twig.
    2. Leaves 1 and 2: either side of the knot, about 24 mm from the centre line, leaning out 12°. Their inner lobes rest on the sides of the knot; the middle of the knot stays visible between them.
    3. Leaves 3 and 4: 42 mm out, leaning 27°, their blades crossing in front of the twigs. Leaves 5 and 6: 58 mm out, leaning 42°, with their blades resting on the inner edge of each acorn cluster.
    4. Hold each one leaning back toward the large leaves until its glue has cooled. Where a leaf rides up over the knot or an acorn it will stand a little proud, which looks natural.
    Why now
    • After bark knot: the two middle leaves fan around the knot and overlap its sides.
    • After acorn clusters: the outer leaves lean over the inner edge of each cluster.
    • After twigs: the front-row leaves cover the thick ends of the twigs.
    • After crown, centre large leaves: the front row leans back onto the large leaves.
    Before moving on From the side there is little or no daylight between the front row and the large leaves behind it.
    12
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    8

    Hanging acorns

    10 min · Hot glue
    2 hanging lines2 full acorns
    1. Each full acorn hangs from an 8 cm length of fishing line. Thin wire works just as well. Tie one end around the stem of the acorn, tight under the cap, and lock the knot with a drop of hot glue. With wire, wrap it twice and twist it closed.
    2. Hot-glue the last 10 mm of the free end to the front of the cheek tab, pointing up, on the outer half of the tab about 12 mm below the lower edge of the band. That is just under where the glasses arm rests.
    3. Lead the line downward and outward from there, so the acorn hangs past the outer edge of the cheek tab, level with the lens. Fishing line lets the acorn swing; wire can be bent to hold it in one place.
    Why now
    • After acorn clusters: so the hanging acorn can be judged against the cluster above it.
    Before moving on The anchor holds when you tug the acorn. With glasses on, the line does not touch the arm.
    1234
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    9

    Tendrils

    15 min · Hot glue for the tip leaves, contact cement for the tendrils
    4 tendrils4 tip leaves
    1. On the bench first: hot-glue the stem of one tip leaf to the curled end of each of the four tendrils.
    2. Each cheek tab takes two tendrils side by side on the front of its lower third, each glued flat by the first 8 mm of its straight end. Flip the acorn up out of the way while you work.
    3. Tendril 1 goes on the inner half of the tab and curls toward the nose. Tendril 2 goes on the outer half and curls toward the ear. They fan apart and must not cross. Each one is rigid and 7 mm thick, so a crossed tendril cannot sit flat.
    Why now
    • After hanging acorns: the cheek tab is still bare except for the line, so both tendril stems can be pressed flat.
    Before moving on All four hang freely below the cheek tabs, none crosses another, and none touches a lens.
    123456
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    10

    Cheek leaves

    10 min · Hot glue, on the stem only
    2 medium leaves4 small leaves
    1. Three leaves per side, tips down, stems side by side across the top of the cheek tab. Keep the tops of the stems just below the line the glasses arm rests on. Keep the acorn flipped up until all three are on.
    2. Leaf 1 (medium): centre of the tab, straight down.
    3. Leaf 2 (small): toward the lens, straight down. Its blade must stay off the glass.
    4. Leaf 3 (small): toward the ear, tip angled outward about 8°. Its stem and the stem of leaf 1 go over the line and hide the anchor.
    5. Let the acorn drop. It hangs in front of the outer lobes of leaves 1 and 3. The tendrils hang out below all three.
    Why now
    • After hanging acorns: two of the leaf stems go over the line and hide it.
    • After tendrils: the leaf blades hang in front of the tendril stems; glued first, the leaves would be in the way.
    Before moving on Glasses on: both arms sit flat, no cheek leaf shows through a lens, and each acorn swings freely.
    1
    Front view. Red outline: glued in this step. Numbers: the order. Grey: already on.
    11

    Nose leaf

    5 min · Hot glue, on the stem only
    1 small leaf
    1. One small leaf, tip down, on the front of the nose strip of the base. The stem glues at the very top of the nose strip and runs up under where the bridge of the glasses sits.
    2. The leaf is wider than the nose strip, so its side lobes hang free and show at the inner corners of the lenses, as in the photos. If that bothers you, trim the two widest lobes.
    3. Press it to follow the curve of your nose while the glue is warm.
    Why now
    • After brow strip: its stem sits just under the brow strip.
    Before moving on Glasses still seat on your nose as they did before. If they ride up, thin the stem with a blade.

    Final fit

    • Put it on, then your glasses. Walk around, look down, shake your head.
    • Both glasses arms sit flat and pass under the acorn clusters.
    • Nothing presses on a lens. (The side lobes of the nose leaf do show at the inner corners.)
    • The crown does not nod forward. If it does and you fitted the top strap, shorten it a little.
    • Flex the crown gently and look for any leaf that moves at its stem. Re-glue it now.

    Then go to the painting guide. Nothing more is glued on after sealing.

    Assembled and unpainted. The foam colours do not matter; sealer covers them.
    Assembled and unpainted. The foam colours do not matter; sealer covers them.

    If something is off

    ProblemFix
    Mask nods forwardShorten the top strap if you fitted one. If not, it cannot be added now; unpick one strap tail at the back and re-glue it 10 mm shorter so the band grips higher on the forehead.
    Glasses ride up or rockThe nose strip or the nose-leaf stem is too thick under the bridge. Thin the foam there with a blade or a sanding drum.
    A cheek tab flares outBefore assembly: reheat its lower corner and hold it against your cheekbone until cool. After assembly: warm only the back of the tab with a hair dryer, never a heat gun.
    A leaf sits at the wrong angleDo not reheat it in place. Peel the stem off, reshape the leaf away from the mask, glue it back.
    Brow strip cracked while formingIt was bent too cold. Glue it down anyway with the crack closed; paint hides it. Or reprint: it is a 35-minute part.
    A leaf comes offUse a spare (medium or small; cut a large or tip leaf fresh if you lose one). Hot glue on the stem, then base colour brushed straight onto the foam; good enough for a repair.
    Frame catches under the bandShave a shallow groove along the back of the band where the top bar crosses it.

    Without glasses

    Untested. The no-glasses base on template page 2 was drawn from the glasses base and has not been built.

    It is the same band, nose strip and cheek tabs, joined under the eyes, with two 46 × 24 mm eye holes 64 mm apart. Everything in this guide applies unchanged, with three differences: paper-fit by checking you see clearly through both holes; ignore the instructions about glasses arms and lenses; and you may let the cheek leaves and the nose leaf sit a little higher, since no frame is in the way. Keep leaf blades clear of the eye holes.

    Painting guide

    Painting the mask

    Seven simple layers, ordered so that none of them undoes an earlier one. Allow about three and a half hours including drying, then leave it overnight to cure.

    @@ -109,7 +106,7 @@ table.dense { font-size: 0.8rem; min-width: 760px; }
    Application
    brushed, apart from the sealer and optional varnish
    Finish by
    the evening before you wear it
    Finished and worn.
    Finished and worn.

    Paints and brushes

    PaintAmountNotes
    Plasti Dip spray, black or grey1 canSealer. Flexible, so it does not crack when leaves bend.
    Dark greenmost usedPhthalo, Hooker’s or forest green. Base for all leaves, tendrils and foam.
    Mid greenSap green or similar. The main leaf colour.
    Yellow-greena littleMid green plus yellow. Leaf highlights.
    Dark brown (burnt umber)Base for bark and acorns, and thinned for the wash.
    Warm browna littleBurnt or raw sienna.
    Tan or old golda littleRidge tops and acorn caps.
    Gloss varnish or clear nail polisha few dropsAcorn nuts.
    Matte spray varnishoptionalProtects the finish.

    Brushes. A 12 mm flat for base coats, an old stiff 8 mm flat for all the dry-brushing, a 4 mm round for the wash and the gloss. Paper towels, a water cup, a damp rag, a drop of dish soap for the wash, painter’s tape. Ordinary craft acrylics are fine.

    Why this order

    • Sealer goes on first. Paint soaks into bare foam and flakes off bare PLA.
    • Dark base coats come before anything light, since dry-brushing only shows over a darker colour.
    • Highlights go on before the wash. If a highlight came out too strong, the wash softens it.
    • The tall centre leaves get one more highlight after the wash, because the wash flattens them most.
    • Gloss is the last thing on, as either the wash or a matte varnish would dull it.
    -

    One medium leaf through five of the stages:

    Sealed
    Base
    Mid-tone
    Highlight
    Wash

    Every surface, every stage

    Tick down each column as you finish a stage. If a row has an entry in the column, that surface gets paint in that stage.

    Surface1 Seal2 Base3 Mid-tone4 Highlight5 Bark6 Wash7 After
    Crown, large leaves (7 large leaves)✓dark green1 light passveins, notchestop lobes of the 3 centre leaves
    Crown front row (6 medium leaves)✓dark green2 to 3 passesedges, veinsveins, notches, overlaps
    Cheek leaves (2 medium leaves, 4 small leaves) and nose leaf✓dark green2 to 3 passesedges, veinsveins, notches
    Tip leaves (4)✓dark green2 to 3 passestipslight
    Tendrils (4)✓dark greentops onlythe curlinside the curl
    Leaf backs that show from the side✓dark green1 light passlight
    Foam base: band edges, cheek tabs, nose strip✓dark greenall over; leave it dark
    Brow strip✓dark brownwarm brown, then gold on ridge topsevery groove; wipe ridges fast
    Bark knot✓dark brownwarm brown, then gold on ringsbetween ringsgloss dot in the eye
    Twigs (2)✓dark brownwarm brown on toplight
    Acorn nuts (8)✓dark brownwarm brownat the cap linegloss
    Acorn caps (8)✓dark browngold across the scalesbetween scalesstay matte
    Elastic where it shows✓dark brown

    Stages

    What this stage should look like, as a diagram.
    1

    Seal

    60 min with waits · Plasti Dip spray, black or grey
    1. Wrap the part of the strap that goes behind your head in painter’s tape; sealer stiffens elastic. Hang the mask by the strap. Flex apart any two leaves that touch face to face.
    2. Three mist coats from about 30 cm. Each coat is five short passes: from below looking up into the crown, from above, from the left, from the right, and from behind for the backs of the large leaves. The straight-on front view covers first and matters least. The skin side of the base gets whatever lands on it and is not painted.
    3. If a surface looks wet you are too close. Wet sealer runs into the overlaps and glues neighbouring leaves into a web.
    4. Wait 10 to 15 minutes between coats, and each time run a finger between leaves that sit close together to break any bridge.
    5. After the third coat wait 30 minutes. Bare foam still showing in the deepest pockets is fine: the wash will sit there.
    Done when Foam, PLA and elastic are one even matte colour and every leaf still moves separately.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    2

    Base coats

    40 min · Dark green, dark brown; flat 12 mm brush
    1. Dark green on every leaf, front and back, on the tendrils and tip leaves, and on all foam you can see: the edges of the band, the cheek tabs, the nose strip.
    2. Dark brown on the brow strip, the knot, the twigs, every acorn (nut and cap), and the elastic where it shows at the temples.
    3. Thin the paint a little so it flows, and push the brush under every leaf edge. Two thin coats beat one thick one.
    4. It can be sloppy, since five more stages go over it.
    Done when Nothing sealer-coloured shows from any angle you would be seen from. Everything will look flat and dull at this point.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    3

    Leaves: mid-tone

    30 min · Mid green; old stiff 8 mm flat brush, paper towel
    1. Dry-brush. Load the brush, wipe nearly all the paint off on a paper towel, then drag it lightly across the surface so only the raised parts catch colour. Test on the towel: a stroke should leave almost nothing.
    2. Brush from stem toward tip on the face of every leaf.
    3. Large leaves: one light pass. Front row, cheek leaves, nose leaf and tip leaves: two or three passes. That difference gives the crown its depth.
    4. One light pass along the top of each tendril, and on leaf backs wherever they show from the side.
    Done when Leaves are clearly green with dark veins. The front row is visibly lighter than the large leaves behind it.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    4

    Leaves: highlights

    15 min · Yellow-green; the same brush, drier still
    1. Forward leaves only: front row, cheek leaves, nose leaf, tip leaves, and the curl of each tendril.
    2. Drag the nearly dry brush across the lobe tips and along the vein ridges. It should come out streaky, the way light catches a real leaf.
    3. Leave the large leaves alone for now. They get their highlight after the wash.
    4. Stop early. If a leaf looks striped there was too much paint on the brush.
    Done when From across the room the front row stands out from the large leaves.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    5

    Bark and acorns

    20 min · Warm brown, tan or old gold; the dry-brushing brush, rinsed
    1. Warm brown dry-brushed over the brow strip, the rings of the knot, the tops of the twigs and the acorn nuts.
    2. Tan or old gold, drier, on the very tops of the strip’s ridges and knobs, the knot’s rings, and across the acorn caps so it catches each scale.
    3. No other step changes the mask as much. The strip stops looking like painted plastic and starts to look carved.
    Done when The strip and knot are the first thing your eye goes to.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    6

    Dark wash

    30 min · Burnt umber thinned 1:4 with water, a drop of dish soap; round 4 mm brush, damp rag
    1. Flood the wash into every low place: leaf veins and the notches between lobes, under every overlap, the grooves of the strip, around the knot, between acorn scales, where stems meet the band.
    2. Within a minute, wipe the raised surfaces with the damp rag so the brown stays only in the low places.
    3. On the strip, wipe the ridge tops promptly to keep the gold. On the foam base and deep under the crown, leave it; those should go dark.
    4. Do the whole mask in one session so it dries evenly. It looks too contrasty while wet, though it settles as it dries.
    Done when Every vein and groove is dark, every raised surface still shows its colour.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    7

    After the wash

    15 min, then overnight · Yellow-green, gloss varnish or clear nail polish
    1. Re-highlight the tall leaves. The wash dulls the large leaves more than the rest. Once it is dry, dry-brush yellow-green down the midrib and across the top lobes of the three centre large leaves. Top halves only.
    2. Optional, and it must come before the gloss: one light coat of matte spray varnish over the whole mask, to protect the dry-brushing from a hood or scarf. Let it dry.
    3. Gloss, brushed on last, on the acorn nuts and a dot in the eye of the knot. Caps stay matte.
    4. Hang by the strap overnight somewhere warm with moving air. Do not lay it down, because leaves set in whatever shape they rest in.
    Done when Next morning a finger pressed on a hidden spot lifts no paint.

    If something is off

    ProblemFix
    Leaves stuck together after sealingSlide a blade between them now. After paint it tears.
    Dry-brush went on solidToo much paint. Let it dry, dry-brush the base colour back over it, try again with a drier brush.
    Wash dried on a raised surfaceScrub with a damp brush within the hour, or dry-brush that surface’s colour back over it.
    The whole thing looks flatMore contrast between rows: another pass of highlight on the front row only.
    Paint still tacky in the morningThick sealer underneath. An hour in front of a fan before wearing.

    ← All builds at Kestrel’s Builds

    +

    One medium leaf through five of the stages:

    Sealed
    Base
    Mid-tone
    Highlight
    Wash

    Every surface, every stage

    Tick down each column as you finish a stage. If a row has an entry in the column, that surface gets paint in that stage.

    Surface1 Seal2 Base3 Mid-tone4 Highlight5 Bark6 Wash7 After
    Crown, large leaves (7 large leaves)✓dark green1 light passveins, notchestop lobes of the 3 centre leaves
    Crown front row (6 medium leaves)✓dark green2 to 3 passesedges, veinsveins, notches, overlaps
    Cheek leaves (2 medium leaves, 4 small leaves) and nose leaf✓dark green2 to 3 passesedges, veinsveins, notches
    Tip leaves (4)✓dark green2 to 3 passestipslight
    Tendrils (4)✓dark greentops onlythe curlinside the curl
    Leaf backs that show from the side✓dark green1 light passlight
    Foam base: band edges, cheek tabs, nose strip✓dark greenall over; leave it dark
    Brow strip✓dark brownwarm brown, then gold on ridge topsevery groove; wipe ridges fast
    Bark knot✓dark brownwarm brown, then gold on ringsbetween ringsgloss dot in the eye
    Twigs (2)✓dark brownwarm brown on toplight
    Acorn nuts (8)✓dark brownwarm brownat the cap linegloss
    Acorn caps (8)✓dark browngold across the scalesbetween scalesstay matte
    Elastic where it shows✓dark brown

    Stages

    What this stage should look like, as a diagram.
    1

    Seal

    60 min with waits · Plasti Dip spray, black or grey
    1. Wrap the part of the strap that goes behind your head in painter’s tape; sealer stiffens elastic. Hang the mask by the strap. Flex apart any two leaves that touch face to face.
    2. Three mist coats from about 30 cm. Each coat is five short passes: from below looking up into the crown, from above, from the left, from the right, and from behind for the backs of the large leaves. The straight-on front view covers first and matters least. The skin side of the base gets whatever lands on it and is not painted.
    3. If a surface looks wet you are too close. Wet sealer runs into the overlaps and glues neighbouring leaves into a web.
    4. Wait 10 to 15 minutes between coats, and each time run a finger between leaves that sit close together to break any bridge.
    5. After the third coat wait 30 minutes. Bare foam still showing in the deepest pockets is fine: the wash will sit there.
    Done when Foam, PLA and elastic are one even matte colour and every leaf still moves separately.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    2

    Base coats

    40 min · Dark green, dark brown; flat 12 mm brush
    1. Dark green on every leaf, front and back, on the tendrils and tip leaves, and on all foam you can see: the edges of the band, the cheek tabs, the nose strip.
    2. Dark brown on the brow strip, the knot, the twigs, every acorn (nut and cap), and the elastic where it shows at the temples.
    3. Thin the paint a little so it flows, and push the brush under every leaf edge. Two thin coats beat one thick one.
    4. It can be sloppy, since five more stages go over it.
    Done when Nothing sealer-coloured shows from any angle you would be seen from. Everything will look flat and dull at this point.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    3

    Leaves: mid-tone

    30 min · Mid green; old stiff 8 mm flat brush, paper towel
    1. Dry-brush. Load the brush, wipe nearly all the paint off on a paper towel, then drag it lightly across the surface so only the raised parts catch colour. Test on the towel: a stroke should leave almost nothing.
    2. Brush from stem toward tip on the face of every leaf.
    3. Large leaves: one light pass. Front row, cheek leaves, nose leaf and tip leaves: two or three passes. That difference gives the crown its depth.
    4. One light pass along the top of each tendril, and on leaf backs wherever they show from the side.
    Done when Leaves are clearly green with dark veins. The front row is visibly lighter than the large leaves behind it.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    4

    Leaves: highlights

    15 min · Yellow-green; the same brush, drier still
    1. Forward leaves only: front row, cheek leaves, nose leaf, tip leaves, and the curl of each tendril.
    2. Drag the nearly dry brush across the lobe tips and along the vein ridges. It should come out streaky, the way light catches a real leaf.
    3. Leave the large leaves alone for now. They get their highlight after the wash.
    4. Stop early. If a leaf looks striped there was too much paint on the brush.
    Done when From across the room the front row stands out from the large leaves.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    5

    Bark and acorns

    20 min · Warm brown, tan or old gold; the dry-brushing brush, rinsed
    1. Warm brown dry-brushed over the brow strip, the rings of the knot, the tops of the twigs and the acorn nuts.
    2. Tan or old gold, drier, on the very tops of the strip’s ridges and knobs, the knot’s rings, and across the acorn caps so it catches each scale.
    3. No other step changes the mask as much. The strip stops looking like painted plastic and starts to look carved.
    Done when The strip and knot are the first thing your eye goes to.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    6

    Dark wash

    30 min · Burnt umber thinned 1:4 with water, a drop of dish soap; round 4 mm brush, damp rag
    1. Flood the wash into every low place: leaf veins and the notches between lobes, under every overlap, the grooves of the strip, around the knot, between acorn scales, where stems meet the band.
    2. Within a minute, wipe the raised surfaces with the damp rag so the brown stays only in the low places.
    3. On the strip, wipe the ridge tops promptly to keep the gold. On the foam base and deep under the crown, leave it; those should go dark.
    4. Do the whole mask in one session so it dries evenly. It looks too contrasty while wet, though it settles as it dries.
    Done when Every vein and groove is dark, every raised surface still shows its colour.
    What this stage should look like, as a diagram.
    The mask at the end of this stage.
    The mask at the end of this stage.
    7

    After the wash

    15 min, then overnight · Yellow-green, gloss varnish or clear nail polish
    1. Re-highlight the tall leaves. The wash dulls the large leaves more than the rest. Once it is dry, dry-brush yellow-green down the midrib and across the top lobes of the three centre large leaves. Top halves only.
    2. Optional, and it must come before the gloss: one light coat of matte spray varnish over the whole mask, to protect the dry-brushing from a hood or scarf. Let it dry.
    3. Gloss, brushed on last, on the acorn nuts and a dot in the eye of the knot. Caps stay matte.
    4. Hang by the strap overnight somewhere warm with moving air. Do not lay it down, because leaves set in whatever shape they rest in.
    Done when Next morning a finger pressed on a hidden spot lifts no paint.

    If something is off

    ProblemFix
    Leaves stuck together after sealingSlide a blade between them now. After paint it tears.
    Dry-brush went on solidToo much paint. Let it dry, dry-brush the base colour back over it, try again with a drier brush.
    Wash dried on a raised surfaceScrub with a damp brush within the hour, or dry-brush that surface’s colour back over it.
    The whole thing looks flatMore contrast between rows: another pass of highlight on the front row only.
    Paint still tacky in the morningThick sealer underneath. An hour in front of a fan before wearing.

    ← All builds at Kestrel’s Builds