Skip to content

Commit fc087a8

Browse files
TMHSDigitalclaude
andcommitted
fix(gallery): nine showcase witness callouts quoted pre-remodel numbers
Each showcase detail page shows a "witnesses" callout (witnessesFix in showcase/gallery.json) that opens "Recomputed: N tris, ...". It is hand-written, and earlier remodels updated the README budgets but not the callout. Nine published pages quoted stale models: piece witness measured street-lantern 3338 4726 treasure-chest 3852 3816 water-trough 3316 4792 hitching-post 1852 2156 hand-pump 1064 2412 iron-cauldron 3664 4180 wooden-ladder 2536 3000 crate-stack 4380 6060 stone-archway 924 1140 Each was re-measured from its script (.scratch/blender-5.2.1, 5.2.1 LTS; "measured ..." lines). The witness numbers that run reports were corrected: triangles, per-material face counts, outer AABB, convex collider, and the piece-specific gaps it prints (hand-pump spout gap and column radius, water-trough water gap and containment rays, crate footprint). Claims the run does not print were left as written. wooden-ladder's README also said 832 metal faces where the script measures 976; fixed. tests/check_witnesses.py (in Validate): a witness that quotes a triangle count must equal every measured column of its README's "Base triangles" row. On the old gallery.json it reports exactly the stale pieces; now 76/76 pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 226a089 commit fc087a8

14 files changed

Lines changed: 94 additions & 29 deletions

File tree

‎.github/workflows/validate.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
- name: Every gallery still is gated by gallery_framing
7474
run: python3 tests/check_render_gates.py
7575

76+
- name: Showcase witness callouts match the README budgets
77+
run: python3 tests/check_witnesses.py
78+
7679
- name: Showcase helper drift (warn-only report)
7780
run: python3 tests/check_helper_drift.py
7881

‎docs/gallery/crate-stack/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>Crate Stack</h1>
5353
<img src="../assets/crate-stack-hero.webp" alt="Three grained wooden shipping crates stacked, each turned slightly differently, with nailed iron corner straps." width="1280" height="720" fetchpriority="high" />
5454
</button>
5555
<p class="zoom-hint">Rendered headless by the showcase piece itself. Select it to enlarge.</p>
56-
<div class="callout"><span class="tag">witnesses</span> Recomputed: 4380 tris, two materials with 216 iron and 2436 timber faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.658×0.524×0.704 m, zmin 0, hygiene 0 including zero coplanar disjoint pairs, three ground runners at z=0, both crate-to-crate seats overlapping, each crate&#x27;s own footprint 0.585×0.425 m measured in its own frame, yaw spread 0.026 rad and plank spread 2.05 mm across instances, LOD ratios in band, convex collider 202 tris, non-empty glTF. --float-stack exits 18 on the seat; --same-seed exits 20 on per-instance variation.</div>
56+
<div class="callout"><span class="tag">witnesses</span> Recomputed: 6060 tris, two materials with 1344 iron and 2418 timber faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.658×0.524×0.704 m, zmin 0, hygiene 0 including zero coplanar disjoint pairs, three ground runners at z=0, both crate-to-crate seats overlapping, each crate&#x27;s own footprint 0.588×0.428 m measured in its own frame, yaw spread 0.026 rad and plank spread 2.05 mm across instances, LOD ratios in band, convex collider 230 tris, non-empty glTF. --float-stack exits 18 on the seat; --same-seed exits 20 on per-instance variation.</div>
5757
<p class="taglist"><span class="tag">category</span> <a href="../#k=showcase&amp;c=village">Village</a></p>
5858
<p class="taglist"><span class="tag">tags</span> <a href="../#tag=mesh">mesh</a> <a href="../#tag=export">export</a> <a href="../#tag=showcase">showcase</a></p>
5959
<div class="runline">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>Hand Pump</h1>
5353
<img src="../assets/hand-pump-hero.webp" alt="A green-enamelled cast-iron village pump with a fluted barrel, ball finial and counterweighted handle on a wooden plinth, a hooped bucket under its spout." width="1280" height="720" fetchpriority="high" />
5454
</button>
5555
<p class="zoom-hint">Rendered headless by the showcase piece itself. Select it to enlarge.</p>
56-
<div class="callout"><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.</div>
56+
<div class="callout"><span class="tag">witnesses</span> Recomputed: 2412 tris, two materials with 1134 metal and 332 wood faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.610×0.521×1.055 m, grounded zmin, spout-to-column gap 2.4 mm, flange-to-plinth gap 6.0 mm, column radius 68 mm, LOD ratios in band, convex collider 205 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.</div>
5757
<p class="taglist"><span class="tag">category</span> <a href="../#k=showcase&amp;c=village">Village</a></p>
5858
<p class="taglist"><span class="tag">tags</span> <a href="../#tag=mesh">mesh</a> <a href="../#tag=export">export</a> <a href="../#tag=showcase">showcase</a></p>
5959
<div class="runline">

‎docs/gallery/hitching-post/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>Hitching Post</h1>
5353
<img src="../assets/hitching-post-hero.webp" alt="A tall wooden hitching post with a pointed cap, a cross-rail on two knee braces with iron end caps and two hung rings, iron bands, and a horseshoe nailed to its face." width="1280" height="720" fetchpriority="high" />
5454
</button>
5555
<p class="zoom-hint">Rendered headless by the showcase piece itself. Select it to enlarge.</p>
56-
<div class="callout"><span class="tag">witnesses</span> Recomputed: 1852 tris, two materials with 114 wood and 828 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.500×0.149×1.246 m, zmin 0, hygiene and coplanar pairs 0, post seated at z 0.010, ring centerline error 0, bands 6.5 mm proud of the post, horseshoe biting 1.5 mm and 7.5 mm proud, LOD ratios in band, convex collider 80 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert and --twin-sole exit 15; --lift-z exits 16; --clip-ring, --sunk-bands and --float-horseshoe exit 18; --short-post exits 19.</div>
56+
<div class="callout"><span class="tag">witnesses</span> Recomputed: 2156 tris, two materials with 222 wood and 880 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.506×0.149×1.246 m, zmin 0, hygiene and coplanar pairs 0, post seated at z 0.010, ring centerline error 0, bands 6.5 mm proud of the post, horseshoe biting 1.5 mm and 7.5 mm proud, LOD ratios in band, convex collider 72 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert and --twin-sole exit 15; --lift-z exits 16; --clip-ring, --sunk-bands and --float-horseshoe exit 18; --short-post exits 19.</div>
5757
<p class="taglist"><span class="tag">category</span> <a href="../#k=showcase&amp;c=village">Village</a></p>
5858
<p class="taglist"><span class="tag">tags</span> <a href="../#tag=mesh">mesh</a> <a href="../#tag=export">export</a> <a href="../#tag=showcase">showcase</a></p>
5959
<div class="runline">

0 commit comments

Comments
 (0)