Skip to content

Commit a0b13b5

Browse files
fix(showcase): hand-pump visual quality pass
Replace the sausage-cylinder gooseneck and cube head with a tube from the column radius and a stuffing-box so the silhouette reads as a pump. Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 68b24c6 commit a0b13b5

7 files changed

Lines changed: 1146 additions & 393 deletions

File tree

1.82 KB
Loading

‎docs/gallery/hand-pump/index.html‎

Lines changed: 547 additions & 193 deletions
Large diffs are not rendered by default.

‎docs/gallery/index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,12 +1074,12 @@ <h2><a href="grindstone/">grindstone</a></h2>
10741074
</article>
10751075
<article class="card" data-tags="mesh export showcase">
10761076
<a class="card-media" href="hand-pump/" aria-label="hand-pump example detail page">
1077-
<img src="assets/hand-pump-hero.webp" alt="hand-pump — A procedural village hand pump with a gooseneck through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract." loading="lazy" decoding="async" />
1077+
<img src="assets/hand-pump-hero.webp" alt="hand-pump — A procedural village hand pump whose gooseneck is a 6-gon tube from the lower-column radius, through UVs, bake, LOD, collider, and Unity glTF, asserting…" loading="lazy" decoding="async" />
10781078
</a>
10791079
<div class="card-body">
10801080
<h2><a href="hand-pump/">hand-pump</a></h2>
1081-
<p class="teaches">A procedural village hand pump with a gooseneck through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
1082-
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 1164 tris, two materials with 222 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.610×0.364×1.049 m, LOD ratios in band (5.2 COLLAPSE more aggressive on LOD2), convex collider 110 tris, non-empty glTF. --skip-decimate exits 9 on the LOD1 ratio budget.</p>
1081+
<p class="teaches">A procedural village hand pump whose gooseneck is a 6-gon tube from the lower-column radius, through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
1082+
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 1064 tris, two materials with 564 metal and 144 wood faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.610×0.382×1.052 m, grounded zmin, spout-to-column gap 2.7 mm, flange-to-plinth gap 6.0 mm, column radius 62 mm, LOD ratios in band, convex collider 114 tris, hygiene all zero, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z 16; --float-spout 17; --float-flange 18; --skinny-col 19.</p>
10831083
<a class="card-link" href="hand-pump/">View example <span aria-hidden="true">&rarr;</span></a>
10841084
</div>
10851085
</article>

‎showcase/gallery.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@
212212
{
213213
"name": "hand-pump",
214214
"dir": "showcase/hand-pump",
215-
"teaches": "A procedural village hand pump with a gooseneck through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.",
216-
"witnessesFix": "Recomputed: 1164 tris, two materials with 222 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.610×0.364×1.049 m, LOD ratios in band (5.2 COLLAPSE more aggressive on LOD2), convex collider 110 tris, non-empty glTF. --skip-decimate exits 9 on the LOD1 ratio budget.",
215+
"teaches": "A procedural village hand pump whose gooseneck is a 6-gon tube from the lower-column radius, through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.",
216+
"witnessesFix": "Recomputed: 1064 tris, two materials with 564 metal and 144 wood faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.610×0.382×1.052 m, grounded zmin, spout-to-column gap 2.7 mm, flange-to-plinth gap 6.0 mm, column radius 62 mm, LOD ratios in band, convex collider 114 tris, hygiene all zero, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z 16; --float-spout 17; --float-flange 18; --skinny-col 19.",
217217
"hero": "docs/gallery/assets/hand-pump-hero.webp",
218218
"preview": "showcase/hand-pump/preview.webp",
219219
"tags": [

‎showcase/hand-pump/README.md‎

Lines changed: 75 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Hand pump
22

33
A showcase piece, not an example. Procedural cast-iron village hand
4-
pump (stacked wooden plinth, two-diameter column, gooseneck spout,
5-
pump head, forked handle, wooden grip) then the shipped pipeline:
6-
unique-cell UVs, Cycles high-to-low normal bake, LOD
7-
chain, convex collider, Unity glTF export.
4+
pump (stepped wooden plinth, two-diameter column, 6-gon gooseneck
5+
tube from the lower-column radius, stuffing-box head, handle, wooden
6+
grip) then the shipped pipeline: unique-cell UVs, Cycles high-to-low
7+
normal bake, LOD chain, convex collider, Unity glTF export.
8+
9+
The column stays on the origin; only zmin is snapped. The gooseneck is
10+
a tube about named stations on the lower-column radius, not a chain of
11+
cylinders. The flange and the plinth cap bite their hosts so stacked
12+
caps are not coplanar.
813

914
It asserts **budget conformance** of the generated result. It does not
1015
witness an API contract. "It rendered without error" is not a check.
@@ -14,6 +19,11 @@ witness an API contract. "It rendered without error" is not a check.
1419
`bake_normal_high_to_low.py`, `setup_bake_target_image.py`,
1520
`lod_chain.py` / `decimate_to_budget.py`, `convex_hull_collider.py`,
1621
`export_preset_unity.py` (helpers copied, not imported as a package).
22+
Hygiene combinatorics match `examples/mesh-hygiene-audit` (copied, not
23+
imported).
24+
25+
Intended size: ~1.05 m village pump, 0.34 m plinth, 0.76 m column;
26+
outer AABB 0.610 × 0.382 × 1.052 m.
1727

1828
## Budgets
1929

@@ -22,39 +32,84 @@ materials, UVs, evaluated LOD, collider, or export file.
2232

2333
| Axis | Declared | Measured (4.5.11 / 5.1.2 / 5.2.1) |
2434
| --- | --- | --- |
25-
| Base triangles | 1080–1240 | 1164 / 1164 / 1164 |
35+
| Base triangles | 900–2200 | 1064 / 1064 / 1064 |
2636
| LOD1 ratio | 0.32–0.62 of base | 0.5000 / 0.5000 / 0.5000 |
27-
| LOD2 ratio | 0.10–0.35 of base | 0.2199 / 0.2199 / 0.2148 |
28-
| Materials | exactly 2 distinct, ≥24 metal faces | 2 slots, 222 metal |
37+
| LOD2 ratio | 0.10–0.35 of base | 0.2199 / 0.2199 / 0.2162 |
38+
| Materials | exactly 2 distinct, ≥48 metal, ≥24 wood | 2 slots, 564 metal / 144 wood |
2939
| UVs | in `0..1`, AABB overlap ≤ 1e-5 | in range, overlap 0 |
30-
| Outer AABB | (0.610, 0.364, 1.049) m ± 0.01 | (0.6100, 0.3639, 1.0491), zmin 0 |
31-
| Collider tris | ≤ 160 | 110 |
32-
| Export | written, size > 0 | 85944 / 85944 / 85936 bytes |
40+
| Outer AABB | (0.610, 0.382, 1.052) m ± 0.015 | (0.6100, 0.3820, 1.0520), zmin 0 |
41+
| Collider tris | ≤ 220 | 114 |
42+
| Export | written, size > 0 | 97304 / 97304 / 97296 bytes |
43+
44+
Base triangles dropped from **1164 to 1064** in the quality pass: seven
45+
sausage cylinders became one gooseneck tube, and the wood grip is no
46+
longer beveled with the plinth. Outer AABB is 0.610 × 0.382 × 1.052 m
47+
(was 0.610 × 0.364 × 1.049 m).
3348

3449
DECIMATE COLLAPSE triangle counts are **not** identical across series —
35-
5.2.1 is more aggressive on LOD2. The gate is a ratio band, not an
50+
5.2.1 is slightly leaner on LOD2. The gate is a ratio band, not an
3651
exact count. Bake pixels are stochastic; the gate is `has_data` plus
3752
operator `FINISHED`, not byte-identity. Construction uses no RNG.
3853
Export byte counts differ by 8 B on 5.2.1 (glTF serializer), not a
3954
gated axis.
4055

41-
`--skip-decimate` skips the LOD DECIMATE stage so LOD1 ratio is 1.0 and
42-
exit 9 fires. That is the named budget the falsifier violates.
56+
### Hygiene
57+
58+
Recomputed from the generated mesh, not asserted about the script.
59+
60+
| Axis | Declared | Measured (all three) |
61+
| --- | --- | --- |
62+
| Non-manifold edges | 0 | 0 |
63+
| Loose verts / edges | 0 / 0 | 0 / 0 |
64+
| Doubles merged at 1e-5 | 0 | 0 |
65+
| Zero-area faces | 0 | 0 |
66+
| N-gons | 0 | 0 |
67+
| Coplanar disjoint face pairs | 0 | 0 |
68+
| Grounded: `zmin` | within 1e-4 of 0 | 0.0000 |
69+
| Plinth `zmin` | within 1e-4 of 0 | 0.00000 |
70+
71+
### Joint fit and column
72+
73+
| Axis | Declared | Measured (all three) |
74+
| --- | --- | --- |
75+
| Spout-to-column BVH gap | ≤ 0.008 m | 0.00272 |
76+
| Flange-to-plinth BVH gap | ≤ 0.008 m | 0.00600 |
77+
| Lower-column radius vs `COL_R_LO` | ± 0.008 m | 0.06200 |
78+
79+
### Falsifiers
80+
81+
Each violates one named budget. All were run on 4.5.11, 5.1.2 and 5.2.1
82+
and returned the same code on each.
83+
84+
| Flag | Budget violated | Exit |
85+
| --- | --- | --- |
86+
| `--skip-decimate` | LOD1 ratio band | 9 |
87+
| `--stray-vert` | loose vertex count is 0 | 15 |
88+
| `--lift-z` | bounding box `zmin` is 0 | 16 |
89+
| `--float-spout` | spout-to-column BVH gap | 17 |
90+
| `--float-flange` | flange-to-plinth BVH gap | 18 |
91+
| `--skinny-col` | lower-column radius | 19 |
4392

4493
## Run
4594

4695
```bash
4796
blender --background --python hand_pump.py --
4897
blender --background --python hand_pump.py -- --skip-decimate
98+
blender --background --python hand_pump.py -- --stray-vert
99+
blender --background --python hand_pump.py -- --lift-z
100+
blender --background --python hand_pump.py -- --float-spout
101+
blender --background --python hand_pump.py -- --float-flange
102+
blender --background --python hand_pump.py -- --skinny-col
49103
blender --background --python hand_pump.py -- --output hand-pump.png
50104
```
51105

52-
Smoke does not pass `--output` or `--skip-decimate`.
106+
Smoke passes no flags.
53107

54108
## Exit codes
55109

56110
File-local. `9` is a valid check code. `10` is reserved for
57-
`gallery_framing.check_framing` on the `--output` path.
111+
`gallery_framing.check_framing` on the `--output` path. `15`–`19` are the
112+
hygiene and joint-fit family.
58113

59114
| Code | Meaning |
60115
| --- | --- |
@@ -73,3 +128,8 @@ File-local. `9` is a valid check code. `10` is reserved for
73128
| 12 | Bake did not finish or image has no data |
74129
| 13 | Export file missing or empty |
75130
| 14 | `--output` produced no file |
131+
| 15 | Hygiene (`--stray-vert` lands here) |
132+
| 16 | Grounded zmin / plinth (`--lift-z`) |
133+
| 17 | Spout-to-column gap (`--float-spout`) |
134+
| 18 | Flange-to-plinth gap (`--float-flange`) |
135+
| 19 | Column radius (`--skinny-col`) |

0 commit comments

Comments
 (0)