You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a9f7840
Browse filesBrowse the repository at this point in the historyBrowse files
Adds two budgets: nail seat (exit 18, --float-nails) and zero right-angle
edges (exit 21, --sharp-iron). The corner strap is now one L-section
extrusion; two overlapping boxes put coplanar chamfer strips on every
outer corner. The iron bevel pins material=METAL_IDX. Per-plank tone and
grain direction ride as face attributes read by the wood shader. The temp
glTF export is removed after it is measured.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
| Ground runners | 3 named supports, each zmin ≤ 1e-3 | 3 at 0.00000 |
68
68
| Crate-to-crate seat | both seats, surface gap ≤ 0.0015 m | 0.00000 (overlapping) |
69
69
| Yaw band | each \|yaw\| in 0.040–0.192 rad | 0.0681, 0.0943, 0.1093 |
70
70
| Per-instance variation | yaw spread ≥ 0.020 rad, plank spread ≥ 0.0008 m | 0.0262 rad, 0.00205 m |
71
+
| Nail seat | 48 nails; bite 0.3–1.0 mm into the strap, head ≥ 1.0 mm proud | 48; bite 0.60 mm, proud 1.80 mm |
72
+
| Edge treatment | manifold edges within 5° of a right angle: 0 | timber 0, iron 0 |
71
73
72
-
Real-world size: each crate is 0.58 × 0.42 m at the timber and 0.585 × 0.425 m
73
-
over the corner iron, 0.244 m tall including runners and lid. Three stacked
74
+
Real-world size: each crate is 0.58 × 0.42 m at the timber and 0.588 × 0.428 m
75
+
over the corner iron and its nail heads, 0.244 m tall including runners and lid. Three stacked
74
76
come to 0.70 m — knee height, wider than tall.
75
77
76
78
### Why the footprint is measured in the crate's own frame
@@ -79,7 +81,7 @@ The stack AABB is the union of three yawed boxes, so a crate could drift to
79
81
any size underneath it and the outer budget would not notice. Each crate's
80
82
footprint is therefore measured after un-rotating by the yaw that crate was
81
83
*measured* to have, not the yaw it was built with. All three land on
82
-
0.5846 × 0.4246 m exactly, which is what makes the un-rotation trustworthy.
84
+
0.5882 × 0.4282 m exactly, which is what makes the un-rotation trustworthy.
83
85
84
86
### Why parts are classified by principal axes
85
87
@@ -98,18 +100,48 @@ shifted a crate, and the seat budget then compared a crate against itself.
98
100
The bands are clustered from the runner heights the mesh actually has, so
99
101
they follow the geometry including when a falsifier moves it.
100
102
103
+
### Why the corner iron is one shell
104
+
105
+
Each strap used to be two overlapping boxes, one per leg of the L. Both
106
+
boxes had a vertical edge on the strap's outer corner, and once the iron
107
+
was chamfered each box laid a chamfer strip on that same line: a coplanar
108
+
cross-shell pair at all twelve corners, which the z-fight budget caught.
109
+
The strap is now a single L-section extrusion — each cap two convex quads
110
+
meeting on the inner-corner diagonal, so no n-gon — with one outer corner.
111
+
The iron bevel passes `material=METAL_IDX`; left to its default, bevel
112
+
gave the chamfer faces slot 0 and the plates rendered and classified as
113
+
timber.
114
+
115
+
### Why nails are told from plates by the strap's size
116
+
117
+
Nail and plate shells are both iron; the nail audit separates them by
118
+
world-AABB extent. The threshold is `IRON_WRAP * 0.5`, derived from the
119
+
strap. A fixed 10 mm threshold dropped 8 of 48 nails as soon as the heads
120
+
grew to 10 mm, because a yawed head's world AABB is wider than the head.
121
+
122
+
### Timber surface
123
+
124
+
`paint_planks` writes two face attributes: `PlankTone`, a seeded tone per
125
+
shell, and `GrainDir`, the shell's own long axis recovered from its
126
+
vertices. The wood shader samples noise in object space with the
127
+
component along `GrainDir` compressed, so the grain streaks run along
128
+
each board whatever the crate's yaw, and scales the colour by the plank's
129
+
tone. Neither attribute is a budget: a tone cannot be seen by an
130
+
assertion, which is why the inspection sheet looked at it.
131
+
101
132
## Determinism
102
133
103
134
Fixed seed 41; no unseeded randomness. Identical geometry across runs on one
104
135
binary and across 4.5.11, 5.1.2 and 5.2.1 — every measured value above is
105
-
byte-identical on the three **except** LOD2, where `DECIMATE COLLAPSE`
106
-
produces 878 triangles on 5.2 and 934 on 4.5 and 5.1. That is why the LOD
107
-
gate is a ratio band (0.10–0.35, measured 0.2005 and 0.2199) and not an exact
108
-
count.
136
+
byte-identical on the three. LOD2 used to differ — `DECIMATE COLLAPSE`
137
+
produced 878 triangles on 5.2 and 934 on 4.5 and 5.1 on the earlier mesh —
138
+
and on the current mesh lands on 1332 on all three. The LOD gate stays a
139
+
ratio band (0.10–0.35) rather than an exact count, because that agreement
140
+
is a property of this mesh, not of the modifier.
109
141
110
142
## Falsifiers
111
143
112
-
Each breaks one pipeline stage so a **named** budget fails. All six were run
144
+
Each breaks one pipeline stage so a **named** budget fails. All eight were run
113
145
on 4.5.11, 5.1.2 and 5.2.1 and produced the same exit code on all three.
114
146
115
147
| Flag | Breaks | Exit |
@@ -120,6 +152,8 @@ on 4.5.11, 5.1.2 and 5.2.1 and produced the same exit code on all three.
120
152
|`--short-skids`| floats **one** of the three ground runners 12 mm; the other two still ground the AABB, so only the named-support budget sees it | 16 |
121
153
|`--float-stack`| lifts the top crate 9 mm clear of the lid below, opening a 34 mm seat gap | 18 |
122
154
|`--same-seed`| gives all three crates the same design seed; yaw spread and plank spread both go to 0 | 20 |
155
+
|`--float-nails`| lifts every nail head 1.5 mm along its plate normal; bite goes to −0.90 mm, nail seat budget | 18 |
156
+
|`--sharp-iron`| skips the iron chamfer pass; 216 right-angle iron edges, edge-treatment budget | 21 |
123
157
124
158
## Exit codes
125
159
@@ -145,9 +179,10 @@ against it. `1` is the FATAL wrapper — a crash, never a named check.
145
179
| 14 |`--output` produced no file |
146
180
| 15 | Mesh hygiene (`--stray-vert`) |
147
181
| 16 | Grounded zmin, or a named ground runner floating (`--lift-z`, `--short-skids`) |
148
-
| 18 | Crate-to-crate seat gap (`--float-stack`) |
182
+
| 18 | Crate-to-crate seat gap (`--float-stack`), or a nail head off its strap seat band (`--float-nails`)|
0 commit comments