Skip to content

Commit 2d53fa0

Browse files
TMHSDigitalclaude
andcommitted
fix(showcase): water-trough quality pass — solid end boards that hold the water
The ends were open U-bands and the water's end face showed where a board belongs; the piece read as a hammock. Ends are now solid boards on the hull's outer arc, and a containment budget casts rays outward from across each water end face (exit 18, --open-ends). --short-legs now stretches the legs to the floor instead of letting the piece re-ground, keeping its AABB still. Per-plank tone and grain, darker water at half fill, wider straps. The temp glTF export is removed after measuring. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
1 parent dc2fcf2 commit 2d53fa0

7 files changed

Lines changed: 707 additions & 88 deletions

File tree

-1.59 KB
Loading
-766 Bytes
Loading

‎docs/gallery/water-trough/index.html‎

Lines changed: 335 additions & 43 deletions
Large diffs are not rendered by default.

‎showcase/gallery.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
"name": "water-trough",
196196
"dir": "showcase/water-trough",
197197
"teaches": "A procedural watertight water trough through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.",
198-
"alt": "A curved wooden water trough on crossed trestle legs, filled with dark green water.",
198+
"alt": "A staved wooden water trough with solid half-round end boards on crossed trestle legs, half full of dark water.",
199199
"witnessesFix": "Recomputed: 3700 tris, three materials with 1674 wood, 156 metal and 29 water faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.093×0.552×0.504 m, zmin 0, four shoes planted, U end-cap rim span 5 mm, strap BVH gap 0, water-hull gap 2.6 mm, hull 1.045×0.466 m, LOD ratios in band, convex collider 64 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-legs 16; --box-ends 17; --float-strap 18; --narrow-hull 19.",
200200
"hero": "docs/gallery/assets/water-trough-hero.webp",
201201
"preview": "showcase/water-trough/preview.webp",

‎showcase/water-trough/README.md‎

Lines changed: 58 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Water trough
22

33
A showcase piece, not an example. Procedural staved water trough on a
4-
timber stand (watertight U-hull, U end-caps, contained water, iron
4+
timber stand (watertight U-hull, solid end boards, contained water, iron
55
straps, trestle legs) then the shipped pipeline: unique-cell UVs, Cycles
66
high-to-low normal bake, LOD chain, convex collider, Unity glTF export.
77

8-
The hull, ends, straps and water all sample the same YZ arc. End caps
9-
are U-boards the staves tenon into, not a bounding-box slab around the
10-
U. Straps sit at `STRAP_X`, offset from `LEG_X`, so the trestle does not
8+
The hull, ends, straps and water all sample the same YZ arc. Each end
9+
is a solid board whose bottom follows the hull's outer arc and whose top
10+
is level, and the staves tenon into it. It is neither a bounding-box slab
11+
around the U (`--box-ends`) nor an open U-band (`--open-ends`). Straps sit at `STRAP_X`, offset from `LEG_X`, so the trestle does not
1112
punch through the iron. Stretchers span the inner faces of the legs.
1213
`--round-band` is not used; `--float-strap` is the seat falsifier.
1314

@@ -23,7 +24,7 @@ Hygiene combinatorics match `examples/mesh-hygiene-audit` (copied, not
2324
imported).
2425

2526
Intended size: 1.08 m tray length, 0.44 m across the U, 0.50 m overall
26-
height; outer AABB 1.093 × 0.552 × 0.504 m.
27+
height; outer AABB 1.093 × 0.552 × 0.5055 m.
2728

2829
## Budgets
2930

@@ -32,24 +33,26 @@ materials, UVs, evaluated LOD, collider, or export file.
3233

3334
| Axis | Declared | Measured (4.5.11 / 5.1.2 / 5.2.1) |
3435
| --- | --- | --- |
35-
| Base triangles | 3300–4000 | 3700 / 3700 / 3700 |
36+
| Base triangles | 2800–3500 | 3124 / 3124 / 3124 |
3637
| LOD1 ratio | 0.32–0.62 of base | 0.5000 / 0.5000 / 0.5000 |
3738
| LOD2 ratio | 0.10–0.35 of base | 0.2200 / 0.2200 / 0.2200 |
38-
| Materials | exactly 3 distinct; ≥24 wood, ≥24 metal, ≥6 water | 3 slots; 1674 / 156 / 29 |
39+
| Materials | exactly 3 distinct; ≥24 wood, ≥24 metal, ≥6 water | 3 slots; 1386 / 156 / 29 |
3940
| UVs | in `0..1`, AABB overlap ≤ 1e-5 | in range, overlap 0 |
40-
| Outer AABB | (1.093, 0.552, 0.504) m ± 0.01 | (1.0932, 0.5520, 0.5040), zmin 0 |
41+
| Outer AABB | (1.093, 0.552, 0.5055) m ± 0.01 | (1.0932, 0.5520, 0.5055), zmin 0 |
4142
| Collider tris | ≤ 80 | 64 |
42-
| Export | written, size > 0 | 268840 / 268840 / 268824 bytes |
43+
| Export | written, size > 0 | 228520 / 228520 / 228504 bytes |
4344

44-
Base triangles rose from **2484 to 3700** in the quality pass: box end
45-
slabs and a single extruded U became ten jittered staves, U end-caps,
45+
Base triangles rose from **2484 to 3700** in the first quality pass: box
46+
end slabs and a single extruded U became ten jittered staves, U end-caps,
4647
continuous straps offset from the legs, and stretchers that meet the
47-
inner faces.
48+
inner faces. The second pass took them to **3124**: the open U-band ends
49+
became solid end boards, which close the section with fewer faces.
4850

4951
DECIMATE COLLAPSE triangle counts are **not** identical across series —
5052
the gate is a ratio band, not an exact count. Bake pixels are
5153
stochastic; the gate is `has_data` plus operator `FINISHED`, not
52-
byte-identity. Stave-width jitter uses closed-form `sin(i)`, no RNG.
54+
byte-identity. Stave-width jitter uses closed-form `sin(i)`; plank tone is the only RNG,
55+
seeded (`TONE_SEED`).
5356
Export byte counts differ by 16 B on 5.2.1 (glTF serializer), not a
5457
gated axis.
5558

@@ -79,10 +82,42 @@ Recomputed from the generated mesh, not asserted about the script.
7982
| End-cap rim Z-span | ≤ 0.080 m | 0.0050 |
8083
| Strap-to-hull BVH gap | ≤ 0.008 m | 0.00000 |
8184
| Water-to-hull BVH gap | ≤ 0.008 m | 0.00260 |
85+
| Water contained by the end boards | 0 misses over 66 outward rays | 0 of 66 |
86+
87+
### Why the ends are solid boards
88+
89+
The first pass made each end a U-shaped band the staves tenoned into.
90+
That closed the rim and nothing else: the water's own flat end face sat
91+
exposed where a board belongs, visible in the end orthos and the
92+
end-cap close-ups. Water in that trough would pour straight out, and
93+
with the ends open the piece read as a hammock or sling. The strap and
94+
water gap budgets passed throughout, because the water did touch the
95+
hull; nothing asked whether anything held it in at the ends.
96+
97+
`containment_audit` asks. From each water end face it casts rays outward
98+
along X, from the face's perimeter vertices and from points drawn 50% and
99+
90% of the way in from the centroid, so the middle of the section is
100+
tested and not only the rim a band would cover. Every ray must hit
101+
timber within `1.5 × END_T`. `--open-ends` restores the U-bands: all 66
102+
rays miss, and the piece exits 18.
103+
104+
### Surface
105+
106+
Staves, boards and legs came out of one flat material, so every board was
107+
the same board. `paint_planks` writes a seeded `PlankTone` and each
108+
shell's own long axis as `GrainDir`, as face attributes. The wood shader
109+
stretches its grain along that axis. The water was a 0.08-roughness mirror
110+
that went near-white under the key. It is now a dark body with a
111+
facing-ratio sky tint toward grazing angles and a faint ripple bump. A
112+
light placed to reflect in the surface was tried first and rejected: it
113+
either mirrored as a white sheet or showed nothing, and its spill lifted
114+
the dark stage. The fill dropped from 68% to 50%, so the inner stave
115+
walls show above the waterline; at 68% the surface sat nearly flush with
116+
the rim and read as felt in a frame. Straps widened from 28 to 40 mm.
82117

83118
### Falsifiers
84119

85-
Each violates one named budget. All seven were run on 4.5.11, 5.1.2 and
120+
Each violates one named budget. All eight were run on 4.5.11, 5.1.2 and
86121
5.2.1 and returned the same code on each.
87122

88123
| Flag | Budget violated | Exit |
@@ -94,9 +129,14 @@ Each violates one named budget. All seven were run on 4.5.11, 5.1.2 and
94129
| `--box-ends` | end-cap rim span | 17 |
95130
| `--float-strap` | strap-to-hull gap | 18 |
96131
| `--narrow-hull` | hull plan vs stated size | 19 |
132+
| `--open-ends` | water contained by the end boards (restores the open U-band ends) | 18 |
97133

98-
`--short-legs` lifts the shoes only, so AABB `zmin` stays 0 (the legs
99-
still plant) and the named-support gate is what fires.
134+
`--short-legs` lifts the shoes and stretches each leg's foot down to the
135+
floor, so AABB `zmin` stays 0 (the legs still plant) and the
136+
named-support gate is what fires. Lifting the shoes alone used to let the
137+
whole piece re-ground on the legs. That shrank the AABB by ~10 mm, 0.4 mm
138+
inside the bounding-box tolerance, and a 1.5 mm model change in this pass
139+
tipped it to exit 8. With the feet stretched, the envelope moves 1.6 mm.
100140

101141
## Run
102142

@@ -109,6 +149,7 @@ blender --background --python water_trough.py -- --short-legs
109149
blender --background --python water_trough.py -- --box-ends
110150
blender --background --python water_trough.py -- --float-strap
111151
blender --background --python water_trough.py -- --narrow-hull
152+
blender --background --python water_trough.py -- --open-ends
112153
blender --background --python water_trough.py -- --output trough.png
113154
```
114155

@@ -140,5 +181,5 @@ hygiene and joint-fit family.
140181
| 15 | Mesh hygiene: loose, non-manifold, zero-area, doubles, n-gons, z-fight |
141182
| 16 | Not grounded: bounding box `zmin` off 0, or a named shoe floats |
142183
| 17 | Joint fit: end-cap U-rim span (`--box-ends`) |
143-
| 18 | Seat: strap or water BVH gap (`--float-strap`) |
184+
| 18 | Seat: strap or water BVH gap (`--float-strap`), or water not contained by the end boards (`--open-ends`) |
144185
| 19 | Hull length or width off the stated real-world size (`--narrow-hull`) |

‎showcase/water-trough/preview.webp‎

-356 Bytes
Loading

0 commit comments

Comments
 (0)