brokkr_kitbash.shell takes a free cage (verts, tri/quad faces, creases, declared poles, mirror seam); cage export and scorer (cut kit-minimal-cage) #40

Merged
eureka merged 4 commits from nibu/kit-minimal-cage into main 2026-12-03 03:16:02 +00:00
Owner

Cut aetheria-release:cut_spec:cut-kit-minimal-cage.r2.

brokkr_kitbash.shell's sheet takes a second form beside the loft: a free cage of verts and faces (3 or 4 sides), with creases by vertex pair, corners, a mirror seam, and declared poles. core.sheet compiles both forms into one Sheet; shell stays the one writer of the mesh.

  • Pole gate. poles must equal the vertices of irregular valence the faces make (not 4 off the boundary, not 2 or 3 on it), on the cage as built. An undeclared pole and a declared non-pole are refused by vertex and valence.
  • Mirror. Vertices on one side of x = 0; those within 0.005 m are snapped to the seam and shared; a face or a shared edge on the plane is refused.
  • Report, both forms: cageVerts, triangles, poles ({valence: count}), closed. subdividedFaces and the face limit count a triangle as 3 * 4^(levels-1).
  • Tools. tools/cage_export.py reads one object of a .blend copy as a free cage document and never saves a .blend. tools/cage_score.py builds two documents through shell and reports counts, limit-surface distance, silhouette IoU and crease chamfer, with no pass bar.
  • Loft unchanged. Its refusals, tests and report keys stand; kitbash_faceted.py's exact key list gains the four new keys.

Proof:

  • python -m unittest discover -s surfaces/blender/tests: 625 tests OK (20 skipped), CageTests new.
  • Blender 5.3 background on Starfire, private user dirs: tests/live/kitbash_cage.py 21 checks, kitbash_faceted.py 34, kitbash_shell.py 91, all pass.
  • Bounds by the margin rule: creased ridge 71 degrees against 16 with crease_edge cleared (bound 34); score median distance 0 against 0.68 % with one vertex moved (bound 0.0018 %).

Deviations from the spec, for Soul:

  • Sheet.poles holds built indices (both halves), not authored ones; the gate and its refusals speak authored indices.
  • core.cage_report, core.subdivided_faces and core.poles are added beside _cage and _cage_facts, so the operator, the tools and the tests read one owner.
  • The export and score round trip is proven in-process by the live test (cage_export.export, cage_score.score); the two command lines were run by hand on a scratch copy, not by a committed test.

The Seraph proof (thigh front plate and knee cap as free cages) is on nibu/fable-minimal-cage and is not part of this PR.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-kit-minimal-cage.r2`. `brokkr_kitbash.shell`'s sheet takes a second form beside the loft: a free cage of `verts` and `faces` (3 or 4 sides), with `creases` by vertex pair, `corners`, a mirror seam, and declared `poles`. `core.sheet` compiles both forms into one `Sheet`; `shell` stays the one writer of the mesh. - **Pole gate.** `poles` must equal the vertices of irregular valence the faces make (not 4 off the boundary, not 2 or 3 on it), on the cage as built. An undeclared pole and a declared non-pole are refused by vertex and valence. - **Mirror.** Vertices on one side of x = 0; those within 0.005 m are snapped to the seam and shared; a face or a shared edge on the plane is refused. - **Report**, both forms: `cageVerts`, `triangles`, `poles` ({valence: count}), `closed`. `subdividedFaces` and the face limit count a triangle as 3 * 4^(levels-1). - **Tools.** `tools/cage_export.py` reads one object of a `.blend` copy as a free cage document and never saves a `.blend`. `tools/cage_score.py` builds two documents through `shell` and reports counts, limit-surface distance, silhouette IoU and crease chamfer, with no pass bar. - **Loft unchanged.** Its refusals, tests and report keys stand; `kitbash_faceted.py`'s exact key list gains the four new keys. Proof: - `python -m unittest discover -s surfaces/blender/tests`: 625 tests OK (20 skipped), `CageTests` new. - Blender 5.3 background on Starfire, private user dirs: `tests/live/kitbash_cage.py` 21 checks, `kitbash_faceted.py` 34, `kitbash_shell.py` 91, all pass. - Bounds by the margin rule: creased ridge 71 degrees against 16 with `crease_edge` cleared (bound 34); score median distance 0 against 0.68 % with one vertex moved (bound 0.0018 %). Deviations from the spec, for Soul: - `Sheet.poles` holds built indices (both halves), not authored ones; the gate and its refusals speak authored indices. - `core.cage_report`, `core.subdivided_faces` and `core.poles` are added beside `_cage` and `_cage_facts`, so the operator, the tools and the tests read one owner. - The export and score round trip is proven in-process by the live test (`cage_export.export`, `cage_score.score`); the two command lines were run by hand on a scratch copy, not by a committed test. The Seraph proof (thigh front plate and knee cap as free cages) is on `nibu/fable-minimal-cage` and is not part of this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cage_export writes vertices as authored (core.sheet owns the seam) and refuses a Subdivision at Keep Corners.
cage_score: distance each way with area-weighted mean and Hausdorff; crease agreement read off the surfaces'
sharp edges (miss, spur) in place of the cage-tag chamfer; cost = fit + complexity after Hoppe et al. 1994.
Live kitbash_cage: the open-plate round trip with its bound, the cost ranking on a creased box, exact wall
counts, bounds compared as they stand (lodur:ruling:deterministic-bound-margin).
Fix batch h2 for aetheria-release:verdict:cut-kit-minimal-cage.s1.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
eureka merged commit eed171efad into main 2026-12-03 03:16:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Brokkr!40
No description provided.