Skip to content

Commit fcd22e7

Browse files
TMHSDigitalclaude
andcommitted
fix(showcase): water-trough third pass: board-built ends, darker water
Each end was one D-shaped slab, the case the "a head or bottom is boards" rule exists for. Each end is now three vertical boards of uneven width, each with its own tone, its bottom following the hull arc under its own span, lapped 1 mm into its neighbours so the joint is tight (no seam for water or a containment ray) and the bevel shows it as a groove. The rim span is read on the union of an end's boards. New budget: end boards per end >= 3 (exit 20, --slab-ends restores the one-piece board, measures 1). The water's grazing tint went from a pale grey-blue that read as a painted slab to a deep teal. Tris 3124 -> 3316 (four arc samples per board cost 3556, over the unchanged 3500 ceiling; three are used). Same codes and values on 4.5.11, 5.1.2 and 5.2.1. Asset sheet added. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
1 parent b94b5ee commit fcd22e7

9 files changed

Lines changed: 235 additions & 62 deletions

File tree

34.3 KB
Loading
738 Bytes
Loading
374 Bytes
Loading

‎docs/gallery/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,12 +1058,12 @@ <h2><a href="anvil/">anvil</a></h2>
10581058
</article>
10591059
<article class="card" data-tags="mesh export showcase">
10601060
<a class="card-media" href="water-trough/" tabindex="-1" aria-hidden="true">
1061-
<img src="assets/water-trough-hero.webp" alt="A staved wooden water trough with solid half-round end boards on crossed trestle legs, half full of dark water." loading="lazy" decoding="async" />
1061+
<img src="assets/water-trough-hero.webp" alt="A staved wooden water trough with half-round ends built of three boards, on crossed trestle legs, half full of dark water." loading="lazy" decoding="async" />
10621062
</a>
10631063
<div class="card-body">
10641064
<h2><a href="water-trough/">water-trough</a></h2>
10651065
<p class="teaches">A procedural watertight water trough through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
1066-
<p class="witnesses"><span class="tag">witnesses</span> 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.</p>
1066+
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 3316 tris, three materials with 1482 wood, 156 metal and 29 water faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.093x0.552x0.5055 m, zmin 0, four shoes planted, each end three lapped boards, end rim span 21 mm, strap BVH gap 0, water-hull gap 2.6 mm, water contained on 66 of 66 rays, hull 1.045x0.466 m, LOD ratios in band, convex collider 68 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-legs 16; --box-ends 17; --float-strap/--open-ends 18; --narrow-hull 19; --slab-ends 20.</p>
10671067
<a class="card-link" href="water-trough/">View showcase piece<span class="sr-only"> water-trough</span> <span aria-hidden="true">&rarr;</span></a>
10681068
</div>
10691069
</article>

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

Lines changed: 106 additions & 31 deletions
Large diffs are not rendered by default.

‎showcase/gallery.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@
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 staved wooden water trough with solid half-round end boards on crossed trestle legs, half full of dark water.",
199-
"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.",
198+
"alt": "A staved wooden water trough with half-round ends built of three boards, on crossed trestle legs, half full of dark water.",
199+
"witnessesFix": "Recomputed: 3316 tris, three materials with 1482 wood, 156 metal and 29 water faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.093x0.552x0.5055 m, zmin 0, four shoes planted, each end three lapped boards, end rim span 21 mm, strap BVH gap 0, water-hull gap 2.6 mm, water contained on 66 of 66 rays, hull 1.045x0.466 m, LOD ratios in band, convex collider 68 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-legs 16; --box-ends 17; --float-strap/--open-ends 18; --narrow-hull 19; --slab-ends 20.",
200200
"hero": "docs/gallery/assets/water-trough-hero.webp",
201201
"preview": "showcase/water-trough/preview.webp",
202202
"tags": [

‎showcase/water-trough/README.md‎

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

33
A showcase piece, not an example. Procedural staved water trough on a
4-
timber stand (watertight U-hull, solid end boards, contained water, iron
4+
timber stand (watertight U-hull, board-built ends, 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

88
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
9+
is three vertical boards whose bottoms follow the hull's outer arc and
10+
whose tops are level, and the staves tenon into them. It is neither a bounding-box slab
1111
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
1212
punch through the iron. Stretchers span the inner faces of the legs.
1313
`--round-band` is not used; `--float-strap` is the seat falsifier.
@@ -33,20 +33,21 @@ materials, UVs, evaluated LOD, collider, or export file.
3333

3434
| Axis | Declared | Measured (4.5.11 / 5.1.2 / 5.2.1) |
3535
| --- | --- | --- |
36-
| Base triangles | 2800–3500 | 3124 / 3124 / 3124 |
36+
| Base triangles | 2800–3500 | 3316 / 3316 / 3316 |
3737
| LOD1 ratio | 0.32–0.62 of base | 0.5000 / 0.5000 / 0.5000 |
38-
| LOD2 ratio | 0.10–0.35 of base | 0.2200 / 0.2200 / 0.2200 |
39-
| Materials | exactly 3 distinct; ≥24 wood, ≥24 metal, ≥6 water | 3 slots; 1386 / 156 / 29 |
38+
| LOD2 ratio | 0.10–0.35 of base | 0.2195 / 0.2195 / 0.2195 |
39+
| Materials | exactly 3 distinct; ≥24 wood, ≥24 metal, ≥6 water | 3 slots; 1482 / 156 / 29 |
4040
| UVs | in `0..1`, AABB overlap ≤ 1e-5 | in range, overlap 0 |
4141
| Outer AABB | (1.093, 0.552, 0.5055) m ± 0.01 | (1.0932, 0.5520, 0.5055), zmin 0 |
42-
| Collider tris | ≤ 80 | 64 |
43-
| Export | written, size > 0 | 228520 / 228520 / 228504 bytes |
42+
| Collider tris | ≤ 80 | 68 |
43+
| Export | written, size > 0 | 242240 / 242240 / 242224 bytes |
4444

4545
Base triangles rose from **2484 to 3700** in the first quality pass: box
4646
end slabs and a single extruded U became ten jittered staves, U end-caps,
4747
continuous straps offset from the legs, and stretchers that meet the
4848
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.
49+
became solid end boards, which close the section with fewer faces. The
50+
third pass took them to **3316**: each end became three boards.
5051

5152
DECIMATE COLLAPSE triangle counts are **not** identical across series —
5253
the gate is a ratio band, not an exact count. Bake pixels are
@@ -79,10 +80,11 @@ Recomputed from the generated mesh, not asserted about the script.
7980

8081
| Axis | Declared | Measured (all three) |
8182
| --- | --- | --- |
82-
| End-cap rim Z-span | ≤ 0.080 m | 0.0050 |
83+
| End-cap rim Z-span (union of an end's boards) | ≤ 0.080 m | 0.0208 |
8384
| Strap-to-hull BVH gap | ≤ 0.008 m | 0.00000 |
8485
| Water-to-hull BVH gap | ≤ 0.008 m | 0.00260 |
8586
| Water contained by the end boards | 0 misses over 66 outward rays | 0 of 66 |
87+
| **End boards** per end | ≥ 3 | 3 |
8688

8789
### Why the ends are solid boards
8890

@@ -101,6 +103,23 @@ tested and not only the rim a band would cover. Every ray must hit
101103
timber within `1.5 × END_T`. `--open-ends` restores the U-bands: all 66
102104
rays miss, and the piece exits 18.
103105

106+
### Why each end is three boards
107+
108+
The third pass found each end was one D-shaped slab: a single board
109+
from rim to rim, one tone, no joint, the thing the showcase's "a head or
110+
bottom is boards, not a slab" rule exists to prevent (end orthos,
111+
end-cap close-ups, the hero). Each end is now three vertical boards of
112+
uneven width (`END_BOARD_FRACS`), each with its own tone and grain, its
113+
bottom following the hull arc under its own span. Neighbours lap 1 mm
114+
into each other (`END_BOARD_LAP`), so the joint is tight: a through
115+
seam would let the water out and a containment ray through, and the
116+
bevel on each board's face edges shows the joint as a groove. The rim
117+
span is now read on the union of an end's boards, so the inner edge of
118+
a board at a joint is not taken for the end's rim. Each board follows
119+
the arc with three samples (`END_BOARD_SAMPLES`); four cost 3556
120+
triangles, over the 3500 ceiling. `--slab-ends` restores the one-piece
121+
board and exits 20.
122+
104123
### Surface
105124

106125
Staves, boards and legs came out of one flat material, so every board was
@@ -114,10 +133,14 @@ either mirrored as a white sheet or showed nothing, and its spill lifted
114133
the dark stage. The fill dropped from 68% to 50%, so the inner stave
115134
walls show above the waterline; at 68% the surface sat nearly flush with
116135
the rim and read as felt in a frame. Straps widened from 28 to 40 mm.
136+
The third pass darkened the grazing tint from a pale grey-blue (0.20,
137+
0.27, 0.29) to a deep teal (0.055, 0.105, 0.115): the hero looks across
138+
the surface near grazing, where that tint wins, and it read as a
139+
painted slab.
117140

118141
### Falsifiers
119142

120-
Each violates one named budget. All eight were run on 4.5.11, 5.1.2 and
143+
Each violates one named budget. All nine were run on 4.5.11, 5.1.2 and
121144
5.2.1 and returned the same code on each.
122145

123146
| Flag | Budget violated | Exit |
@@ -130,6 +153,7 @@ Each violates one named budget. All eight were run on 4.5.11, 5.1.2 and
130153
| `--float-strap` | strap-to-hull gap | 18 |
131154
| `--narrow-hull` | hull plan vs stated size | 19 |
132155
| `--open-ends` | water contained by the end boards (restores the open U-band ends) | 18 |
156+
| `--slab-ends` | end boards per end (restores the one-piece D board; measures 1) | 20 |
133157

134158
`--short-legs` lifts the shoes and stretches each leg's foot down to the
135159
floor, so AABB `zmin` stays 0 (the legs still plant) and the
@@ -150,6 +174,7 @@ blender --background --python water_trough.py -- --box-ends
150174
blender --background --python water_trough.py -- --float-strap
151175
blender --background --python water_trough.py -- --narrow-hull
152176
blender --background --python water_trough.py -- --open-ends
177+
blender --background --python water_trough.py -- --slab-ends
153178
blender --background --python water_trough.py -- --output trough.png
154179
```
155180

@@ -183,3 +208,4 @@ hygiene and joint-fit family.
183208
| 17 | Joint fit: end-cap U-rim span (`--box-ends`) |
184209
| 18 | Seat: strap or water BVH gap (`--float-strap`), or water not contained by the end boards (`--open-ends`) |
185210
| 19 | Hull length or width off the stated real-world size (`--narrow-hull`) |
211+
| 20 | An end is fewer than three boards (`--slab-ends`) |

‎showcase/water-trough/preview.webp‎

676 Bytes
Loading

‎showcase/water-trough/water_trough.py‎

Lines changed: 88 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
"""Game-ready wooden water trough — a showcase piece, not an example.
22
33
Asserts budget conformance of a procedural staved trough on a timber
4-
stand (U-staves and solid end boards from one radius function, contained
4+
stand (U-staves and board-built ends from one radius function, contained
55
water, iron straps lofted on that same host, trestle legs) after
66
composing shipped pipeline pieces: bmesh construction, UVs, three
77
materials, high-to-low normal bake, LOD chain, convex collider, Unity
88
glTF export.
99
1010
The hull, ends, straps and water all sample the same YZ arc. Each end
11-
is a solid board on the hull's outer arc that the staves tenon into:
12-
not a bounding-box slab, not an open U-band. Legs run from a hull-outer station to a shoe at Z=0.
11+
is three lapped vertical boards on the hull's outer arc that the staves
12+
tenon into: not a bounding-box slab, not an open U-band, not one slab. Legs run from a hull-outer station to a shoe at Z=0.
1313
1414
Budgets are declared below and recomputed from the generated result.
1515
They are not API-contract witnesses. Each falsifier violates one named
1616
budget: ``--skip-decimate`` the LOD-ratio band, ``--stray-vert`` mesh
1717
hygiene, ``--lift-z`` grounded zmin, ``--short-legs`` named shoe
1818
supports, ``--box-ends`` end-cap U-fit, ``--float-strap`` strap seat,
1919
``--narrow-hull`` hull real-world size, ``--open-ends`` water
20-
containment.
20+
containment, ``--slab-ends`` end boards per end.
2121
2222
Stave seams use closed-form ``sin(i)``; the only RNG is plank tone,
2323
seeded with ``TONE_SEED``. DECIMATE COLLAPSE
@@ -69,6 +69,12 @@
6969
STRETCHER_T = 0.028
7070
LEG_W = 0.048
7171
WATER_GAP = 0.004
72+
# Each end is three vertical boards of uneven width, lapped 1 mm into each
73+
# other, not one D-shaped slab (the barrel's head rule, applied here).
74+
END_BOARD_FRACS = (0.36, 0.30, 0.34)
75+
END_BOARD_LAP = 0.001
76+
END_BOARD_SAMPLES = 3
77+
END_BOARDS_MIN = 3
7278
# Half full: at 0.68 the surface sat nearly flush with the rim and hid the
7379
# inner stave walls, so nothing said vessel.
7480
WATER_FILL = 0.50
@@ -273,6 +279,47 @@ def ring(x):
273279
return verts
274280

275281

282+
def add_end_boards(bm, x0, x1, r_arc, z_top, zc, a_span, fracs, mat_idx):
283+
"""An end made of vertical boards side by side, not one slab.
284+
285+
``fracs`` splits the end's width into boards (uneven, as sawn boards
286+
are). Each board's bottom follows the hull's outer arc under its own
287+
span and its top is level at ``z_top``. Neighbours overlap by
288+
END_BOARD_LAP, so the joint is tight (no through-gap for water or for
289+
a containment ray) and the bevel on each board's face edges shows it
290+
as a groove.
291+
"""
292+
y_max = r_arc * math.sin(a_span)
293+
edges = [-y_max]
294+
for f in fracs:
295+
edges.append(edges[-1] + 2.0 * y_max * f)
296+
edges[-1] = y_max
297+
verts = []
298+
for k in range(len(fracs)):
299+
y0 = max(-y_max, edges[k] - END_BOARD_LAP)
300+
y1 = min(y_max, edges[k + 1] + END_BOARD_LAP)
301+
ys = [y0 + (y1 - y0) * i / END_BOARD_SAMPLES for i in range(END_BOARD_SAMPLES + 1)]
302+
303+
def ring(x):
304+
arc = [bm.verts.new((x, y, hull_z_at_y(y, r_arc, zc))) for y in ys]
305+
top = [bm.verts.new((x, y, z_top)) for y in ys]
306+
return arc, top
307+
308+
arc0, top0 = ring(x0)
309+
arc1, top1 = ring(x1)
310+
n = END_BOARD_SAMPLES
311+
for i in range(n):
312+
j = i + 1
313+
_face(bm, (arc0[i], top0[i], top0[j], arc0[j]), mat_idx)
314+
_face(bm, (arc1[j], top1[j], top1[i], arc1[i]), mat_idx)
315+
_face(bm, (arc0[j], arc1[j], arc1[i], arc0[i]), mat_idx)
316+
_face(bm, (top0[i], top1[i], top1[j], top0[j]), mat_idx)
317+
_face(bm, (arc0[0], arc1[0], top1[0], top0[0]), mat_idx)
318+
_face(bm, (arc0[n], top0[n], top1[n], arc1[n]), mat_idx)
319+
verts.extend(arc0 + top0 + arc1 + top1)
320+
return verts
321+
322+
276323
def add_box_end(bm, x_mid, radius, zc, a_span, thick, mat_idx):
277324
y_span = 2.0 * radius * math.sin(a_span)
278325
z_lo = zc - radius
@@ -364,6 +411,7 @@ def build_trough_mesh(
364411
short_legs=False,
365412
narrow_hull=False,
366413
open_ends=False,
414+
slab_ends=False,
367415
):
368416
bm = bmesh.new()
369417
try:
@@ -406,12 +454,15 @@ def build_trough_mesh(
406454
elif not box_ends:
407455
# Top sits at the band's inner rim, 6 mm proud of the staves.
408456
z_top = zc - r_cap_in * math.cos(A_SPAN)
409-
for xa, xb in ((x_cap_l0, x_cap_l1), (x_cap_r0, x_cap_r1)):
410-
wood.extend(
411-
add_end_board(
412-
bm, xa, xb, r_cap_out, z_top, N_STAVES, zc, A_SPAN, WOOD_IDX
413-
)
414-
)
457+
for (xa, xb), fracs in (((x_cap_l0, x_cap_l1), END_BOARD_FRACS),
458+
((x_cap_r0, x_cap_r1), END_BOARD_FRACS[::-1])):
459+
if slab_ends:
460+
# --slab-ends: the one-piece D board of the first pass
461+
wood.extend(add_end_board(
462+
bm, xa, xb, r_cap_out, z_top, N_STAVES, zc, A_SPAN, WOOD_IDX))
463+
else:
464+
wood.extend(add_end_boards(
465+
bm, xa, xb, r_cap_out, z_top, zc, A_SPAN, fracs, WOOD_IDX))
415466

416467
top_z = hull_z_at_y(LEG_TOP_Y, r_out, zc)
417468
bot_z = SHOE_H * 0.55
@@ -716,7 +767,9 @@ def water_material(name):
716767
tint = nt.nodes.new("ShaderNodeMix")
717768
tint.data_type = "RGBA"
718769
_sock(tint.inputs, "A_Color").default_value = (0.010, 0.040, 0.046, 1.0)
719-
_sock(tint.inputs, "B_Color").default_value = (0.20, 0.27, 0.29, 1.0)
770+
# The hero looks across the surface near grazing, where this tint wins:
771+
# a pale grey-blue (0.20, 0.27, 0.29) read as a painted slab, not water.
772+
_sock(tint.inputs, "B_Color").default_value = (0.055, 0.105, 0.115, 1.0)
720773
nt.links.new(facing.outputs["Facing"], _sock(tint.inputs, "Factor_Float"))
721774
nt.links.new(_sock(tint.outputs, "Result_Color"), bsdf.inputs["Base Color"])
722775
coord = nt.nodes.new("ShaderNodeTexCoord")
@@ -970,7 +1023,8 @@ def joint_audit(me):
9701023
if mat == WOOD_IDX and dx > TRAY_L * 0.5:
9711024
staves.append((g, a))
9721025
continue
973-
if mat == WOOD_IDX and dx < END_T * 3.5 and dy > 0.25 and abs(cx) > TRAY_L * 0.35:
1026+
# an end is one or more boards: thin in X, out past the legs
1027+
if mat == WOOD_IDX and dx < END_T * 3.5 and dy > 0.08 and abs(cx) > TRAY_L * 0.35:
9741028
ends.append((g, a))
9751029
continue
9761030
if mat == METAL_IDX and dy > 0.15 and dz > 0.10:
@@ -979,9 +1033,15 @@ def joint_audit(me):
9791033
if mat == WATER_IDX:
9801034
waters.append((g, a))
9811035
hulls = staves
982-
rim_span = 0.0
1036+
# Group each end's boards; the rim span is read on the union of an end's
1037+
# boards, at its outermost Y, so a board's inner edge at a joint between
1038+
# boards is not mistaken for the end's rim.
1039+
by_end = {}
9831040
for g, a in ends:
984-
pts = [me.vertices[i].co for i in g]
1041+
by_end.setdefault(1 if a[0] + a[3] > 0.0 else -1, []).append(g)
1042+
rim_span = 0.0
1043+
for gs in by_end.values():
1044+
pts = [me.vertices[i].co for g in gs for i in g]
9851045
ymax = max(abs(p.y) for p in pts)
9861046
rim = [p for p in pts if abs(abs(p.y) - ymax) < 0.025]
9871047
if rim:
@@ -1002,7 +1062,8 @@ def joint_audit(me):
10021062
return {
10031063
"parts": len(groups),
10041064
"hulls": len(hulls),
1005-
"ends": len(ends),
1065+
"ends": len(by_end),
1066+
"end_boards": min((len(gs) for gs in by_end.values()), default=0),
10061067
"straps": len(straps),
10071068
"waters": len(waters),
10081069
"rim_span": rim_span,
@@ -1155,6 +1216,7 @@ def check(
11551216
short_legs=False,
11561217
narrow_hull=False,
11571218
open_ends=False,
1219+
slab_ends=False,
11581220
):
11591221
bpy.ops.wm.read_factory_settings(use_empty=True)
11601222
low = build_trough_mesh(
@@ -1166,6 +1228,7 @@ def check(
11661228
short_legs=short_legs,
11671229
narrow_hull=narrow_hull,
11681230
open_ends=open_ends,
1231+
slab_ends=slab_ends,
11691232
)
11701233
high = build_trough_mesh(
11711234
"TroughHigh",
@@ -1176,6 +1239,7 @@ def check(
11761239
short_legs=short_legs,
11771240
narrow_hull=narrow_hull,
11781241
open_ends=open_ends,
1242+
slab_ends=slab_ends,
11791243
)
11801244
wood, metal, water = trough_materials()
11811245
assign_slots(low, wood, metal, water)
@@ -1267,7 +1331,7 @@ def check(
12671331
f"measured shoes={sup['shoes']} shoe_z={sup['shoe_z']:.5f} "
12681332
f"rim_span={jnt['rim_span']:.4f} strap_gap={jnt['strap_gap']:.5f} "
12691333
f"water_gap={jnt['water_gap']:.5f} hull_xy={jnt['hull_xy']} "
1270-
f"ends={jnt['ends']} straps={jnt['straps']}"
1334+
f"ends={jnt['ends']} end_boards={jnt['end_boards']} straps={jnt['straps']}"
12711335
)
12721336
print(f"measured containment rays={con['rays']} misses={con['misses']}")
12731337

@@ -1392,6 +1456,12 @@ def check(
13921456
"(--open-ends is the designed fail)",
13931457
18,
13941458
), None, None, None, None, None
1459+
if jnt["end_boards"] < END_BOARDS_MIN:
1460+
return fail(
1461+
f"end made of {jnt['end_boards']} board(s), need {END_BOARDS_MIN} "
1462+
"(--slab-ends is the designed fail)",
1463+
20,
1464+
), None, None, None, None, None
13951465
return 0, low, high, wood, tex, collider
13961466

13971467

@@ -1513,6 +1583,7 @@ def main():
15131583
p.add_argument("--float-strap", action="store_true")
15141584
p.add_argument("--narrow-hull", action="store_true")
15151585
p.add_argument("--open-ends", action="store_true")
1586+
p.add_argument("--slab-ends", action="store_true")
15161587
args = p.parse_args(argv)
15171588

15181589
code, low, _high, wood, tex, _col = check(
@@ -1524,6 +1595,7 @@ def main():
15241595
short_legs=args.short_legs,
15251596
narrow_hull=args.narrow_hull,
15261597
open_ends=args.open_ends,
1598+
slab_ends=args.slab_ends,
15271599
)
15281600
if code:
15291601
return code

0 commit comments

Comments
 (0)