docs/kitbash.md: Thickness at a crease for the plain offset: t x cos(phi) at a crease, folds from (W / 2^levels) / sin(phi), no needle

The flat-facet onset re-measured with the plain offset (31 of 31 readings at 1.00 of the sin figure; Even
Thickness at 1.00 of the tan figure in the same 31), the three seeded lofts' first folds, the narrow plate and
the hexagon with both modes, and the Seraph readings marked as Even Thickness readings.

Cut aetheria-release:cut_spec:cut-shell-plain-wall.r1.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 09:03:15 +01:00
commit d4d0872d76

View file

@ -491,7 +491,7 @@ column 3, the shoulder line, is creased, so the crown and the steep outer face a
dips: the plate is concave there, which no convex hull can be.
The object carries the cage, `crease_edge` and `crease_vert`, and the modifiers `Kit Subsurf` (`levels`, creases
used) then `Kit Solidify` (`thickness`, `offset`, even, rim filled), then any Booleans `cut` adds, then the `Kit
used) then `Kit Solidify` (`thickness`, `offset`, plain offset, rim filled), then any Booleans `cut` adds, then the `Kit
Bevel` when `bevel` is over 0. `kit_shell` on it is the request, and it owns the cage as `kit_params` owns a
part's mesh: an edit of the cage by hand is lost at the next `shell` call. `shell` reports `object`, `rebuilt`,
`rings`, `points`, `cageFaces`, `creases` (edges with a weight over 0), `folded` (see Thickness at a crease),
@ -513,29 +513,46 @@ the outline, and the plate left between two bites is a tab.
it; a rib deeper than the room a tight crease leaves is refused with the size to lower.
**Thickness at a crease.** `shell` takes any `thickness` in its range and does not refuse one the cage cannot
hold: the limit is a fact of the subdivided mesh, not of the cage. Even thickness moves a vertex on a
full crease along the crease's bisector, which slides it `thickness` x tan(phi) across each facet, phi being half
the angle between the two facets' normals; the vertices beside it move straight in. Where that slide is longer than
the first row of subdivided faces, the wall's far face folds over itself beside the crease: at a wall depth over
(W / 2^`levels`) / tan(phi), W the width across the crease of the narrower of its two facets. The fold is on the
crease's concave side: behind a ridge, so under a wall grown inward, and in front of a valley, under a wall grown
outward; the two read the same. Measured on two flat facets, a crease of 1.0: the fold starts at 1.00 of that
figure in 23 of 23 readings (W 1 and 0.4; phi 15 to 60; levels 1 to 3; a ridge and a valley), which is 0.217 for W
1, phi 30, levels 3, and 0.029 for W 0.4, phi 60, levels 3. Facets 1.0 and 0.3 wide at phi 45, levels 2, fold at
0.075, the narrow facet's figure, not the wide one's 0.25. A crease of 0.5 folds at 1.02 to 1.32 of it, and an
uncreased edge folds too, at 1.17 to 4.2 of it. The fold is inside the wall and one subdivided row wide: the
designed surface is unchanged and the mesh has no open or non-manifold edge, but the solid passes through itself
there, and a cut through that place is untested.
hold: the limit is a fact of the subdivided mesh, not of the cage. `Kit Solidify` is a plain offset (Even Thickness
off): each vertex of the wall's far face stands `thickness` from its vertex of the designed surface, along that
vertex's normal. On a full crease that normal is the crease's bisector, so the wall there is `thickness` x cos(phi)
thick square to a facet, phi being half the angle between the two facets' normals: 0.71 of it at a right-angled
crease, and the rim strip at a creased corner is narrower by the same factor. A wall of 0.06 reads 0.0539 behind
the pauldron's shoulder crease above. The crease vertex slides `thickness` x sin(phi) across each facet; the
vertices beside it move straight in. Where that slide is longer than the first row of subdivided faces, the wall's
far face folds over itself beside the crease: at a wall depth over (W / 2^`levels`) / sin(phi), W the width across
the crease of the narrower of its two facets. The fold is on the crease's concave side: behind a ridge, so under a
wall grown inward, and in front of a valley, under a wall grown outward; the two read the same. Measured on two
flat facets, a crease of 1.0: the fold starts at 1.00 of that figure in 31 of 31 readings (W 1 and 0.4; phi 15 to
60; levels 1 to 3; a ridge, and a valley at levels 2), which is 0.25 for W 1, phi 30, levels 3, and 0.058 for W
0.4, phi 60, levels 3. Facets 1.0 and 0.3 wide at phi 45, levels 2, fold at 0.106, the narrow facet's figure, not
the wide one's 0.354. A crease of 0.5 folds at 0.72 to 1.14 of it, and an uncreased edge folds too, at 1.21 to 3.3
of it (three readings each). The fold is inside the wall and one subdivided row wide: the designed surface is
unchanged and the mesh has no open or non-manifold edge, but the solid passes through itself there, and a cut
through that place is untested.
No figure read from the cage bounds this. The flat-facet figure above, taken over every cage edge, is neither a
floor nor a ceiling on a real plate: on seeded lofts of planar trapezoid facets with partial crease runs the
evaluated wall first folded at 0.44 of it with the wall grown inward, at 0.03 of it at `offset` 0 and at 0.08 of it
grown outward, and on the Seraph's plates a first face normal turned at 0.74 to 2.6 of it (`tests/fixtures/fold_lofts.json` holds three of
those lofts; 2026-12-02). So `shell` counts instead of estimating: with `count_folds` it evaluates the wall alone,
Even Thickness would hold the wall at `thickness` square to both facets by moving the crease vertex `thickness` /
cos(phi) along the bisector. That slides it `thickness` x tan(phi) across each facet, so the wall folds sooner, at
(W / 2^`levels`) / tan(phi) (1.00 of it in the same 31 readings), and where creases meet at a pinned corner of a
narrow plate the factor runs away and the wall throws a needle. A plate of a crown ring, a flared skirt and a
domed centre, 0.13 m wide and 1.2 m long, with a wall of 0.04, stood 3.28 thicknesses beyond its cage's bounds
with Even Thickness and stands 0.95 with the plain offset (0.372 m against 0.076 m at a wall of 0.08). A hexagon of
the same make 1.2 m across folded 20 of its 168 inner faces at 0.015, 28 at 0.03 and 44 at 0.07; with the plain
offset it folds 0, 2 and 20. `tests/live/kitbash_cage.py` holds the two plates. Solidify's thickness clamp with
its angle clamp changed no fold count and no bound in either mode, and its complex mode threw a vertex 2.07 m
beyond a 1.0 m plate's cage at a wall of 0.08 (2026-12-03).
No figure read from the cage bounds this. Of three seeded lofts of planar trapezoid facets with partial crease
runs (`tests/fixtures/fold_lofts.json`), the evaluated wall first folds at 0.042 with the wall grown inward and
at 0.023 grown outward, and at `offset` 0 it folds at the least thickness `shell` takes (2026-12-03). The lofts
were drawn against Even Thickness, where the flat-facet figure of that mode, taken over every cage edge, was
neither a floor nor a ceiling: the wall first folded at 0.44 of it grown inward, at 0.03 of it at `offset` 0 and at
0.08 of it grown outward, and on the Seraph's plates a first face normal turned at 0.74 to 2.6 of it (2026-12-02).
So `shell` counts instead of estimating: with `count_folds` it evaluates the wall alone,
`Kit Subsurf` and `Kit Solidify` with every other modifier hidden for the reading and shown again, and reports
`folded`, the number of the wall's inner faces that fold. An inner face folds when the turn at any of its corners
runs with its outer twin's normal: the corner has passed over its neighbour. That is sooner than the face's own
normal turning: on the Seraph's cap a corner turned at 0.033 and no face normal had at 0.0416. Without `count_folds`, `folded` is null
normal turning: on the Seraph's cap, with Even Thickness, a corner turned at 0.033 and no face normal had at 0.0416. Without `count_folds`, `folded` is null
and nothing is evaluated. The count cost 3.9 ms on a new plate of 1600 subdivided faces (a call of 7.7 ms against
3.8 ms), and nothing measurable on a rebuild under six cutters (0.94 s against 0.92 s, the call's own Boolean),
medians of three interleaved calls in the live suite (Blender 5.3 on Starfire). On a shell whose `Kit Subsurf` or
@ -543,7 +560,7 @@ medians of three interleaved calls in the live suite (Blender 5.3 on Starfire).
`folded` 0 is not yet a wall an Exact Boolean takes cleanly. Short of the fold the inner quads at a tight rim corner
are twisted, and the Boolean, which cuts quads into triangles, can read the wall as passing through itself and
leave edges with four faces. On the Seraph's cap that began at 0.91 of the thickness at which the first face
leave edges with four faces. On the Seraph's cap, read with Even Thickness, that began at 0.91 of the thickness at which the first face
folds (0.0301 against 0.033), on the left cap and not on its mirror, the right; on its breast plate at 0.91 as
well (0.032 against 0.035). Read `nonManifoldEdges` after cutting (`boolean`, `freeze`, or a count on the evaluated
mesh), and keep `thickness` clear of the first folding one with a thinner wall, fewer `levels` or wider facets at