medieval-kit/my-registry/models/core
CRT 0ee74da6a6 Make bendGeometry refuse geometry it cannot bend
Every vertex is mapped by its own Y, so the curve only exists where there
are Y levels to sample it at. Handed a `boxGeometry` -- two levels, top and
bottom -- there is no midpoint to displace: the top face swings to one
angle, the bottom to another, and what comes out is a sheared wedge. It
looks like a curve in the source and is not one in the geometry, and
nothing anywhere reports it.

This session found that same mistake in three separate models: the
tankard's handle, and both the brace and the curl of the tavern sign. In
each one the author had written a curve, the geometry had never curved, and
every render ever produced had shipped the wedge. The sign's was the
expensive one -- the sheared curl pushed the bracket's top above the post it
is bolted to, and it was also hiding a second fault underneath it. Three of
the same bug is a pattern, so the helper now refuses rather than waiting
for a fourth.

The error names the fix, because the tempting response is to adjust the
curvature and the curvature was never the problem: give the piece levels,
or use `arcBarGeometry`, which sweeps a real arc and asks for the two
things that actually matter -- where the ends land.

Mutation-tested both ways: a box is rejected, a five-level lathe still
bends, and all four remaining callers (the broom's shaft, the hoe's neck
and blade, the pitchfork's tines) build unchanged, so they were legitimate
bends all along.

27 models, 18481 triangles, all checks pass, build clean.
2026-08-23 04:07:43 +00:00
..
geometry.ts Make bendGeometry refuse geometry it cannot bend 2026-08-23 04:07:43 +00:00
index.ts Kit'i 26 modele çıkar, doğrulamayı ve inceleyiciyi genişlet 2026-08-21 02:44:58 +00:00
kit.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
materials.ts Stand the bell's frame clear of the bell, and stop painting it brass 2026-08-22 07:02:22 +00:00
occlusion.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
parts.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
random.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
tint.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
tool.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00