brokkr_kitbash.plate: hard plates from a plate table, in numpy alone (cut hard-plate-core) #45

Merged
eureka merged 3 commits from nibu/hard-plate-core into main 2026-12-03 14:31:54 +00:00
Owner

Cut aetheria-release:cut_spec:cut-hard-plate-core.r1, base 24a6730.

What lands

  • surfaces/blender/brokkr_kitbash/plate.py: check(document) and build(table, side=1) for a brokkr.plates.v0 table. Each row is a convex solid by faces, slab (outline or corners), sections or points; clad raises seeded detail panels with a bolt in each corner; fits gives anchor frames (mark, hose_port). numpy and the standard library; the hull is built here; the table alone decides the result.
  • surfaces/blender/tests/test_plate.py (57 tests) and tests/fixtures/plates_{bastion,paladin,raptor}.json: tables converted from nibu/fable-bastion-2 (eeda8bf), nibu/fable-paladin-3 (c35e57e), nibu/fable-raptor-4 (0c27103) and the truth each branch's own builder made in Blender 5.3.
  • tests/test_kitbash.py OwnershipTests: plate.py joins the sources and the no-Blender pattern; no unseeded Random(), no experiment imports.
  • docs/kitbash.md: Hard plates.

Nothing on main is deleted; no action, no bpy. The branches' own copies go in the migration follow-ups.

Verification

  • python -m unittest surfaces/blender/tests/test_plate.py: 57 pass, 6 s (Python 3.13, Starfire).
  • Geometry parity (solid 1e-6 m, panels 1e-5 m, facet and bolt counts): 115 of 126 fixture plates. Paladin 53 of 53, raptor 45 of 50, bastion 17 of 23.
  • Six mutants each fail the tests: miter clamp 0.3 to 0.5 (13 plates), cut share to (0.3, 0.7) (15), lift coin removed (26), gap ignored (50, raptor), merge limit 0.5 to 0.05 (HullTests and 2 bastion plates), outer test 0.97 to 0.9 (CladTests only).
  • Render parity, Workbench flat, 1024 x 1024, five cameras, worst camera, branch meshes against plate.build's (mean /255, share over 8/255):
mech shipped least mutant bound (geometric mean)
paladin 0.000029, 0.0000010 0.012072, 0.0006495 (taper + 0.01) 0.00059, 0.000025
raptor 0.000022, 0.0000010 0.004608 (taper), 0.0002213 (seed + 1) 0.00032, 0.000015
bastion, less three plates 0.005547, 0.0001459 0.253421, 0.0054789 (seed + 1) 0.0375, 0.00089
bastion, whole set 0.221505, 0.0050468 0.387753, 0.0103798 over the ceiling (0.5, 0.001)

Where the truth is not met

The branches build in float32 and leave two choices to Blender's mesh order. test_plate.py's KNOWN names each plate and what is asserted of it instead:

  • Bastion Hull.Quarter.R/.L: the branch's massing.corners loses a corner its faces do bound (float32 inside test), so the branch's pod is smaller than the table's solid. plate.build has the corner. This is why bastion's whole-set render is over the ceiling.
  • Bastion Hull.BellySide.R: its split facet has two equally long edges; the branch cut from one on the right plate and the other on the left. No rule on the table meets both; the rule here (the greater middle) meets the left.
  • Eight plates (bastion Hull.Cheek.R/.L, Hull.BellySide.L; raptor Torso.Jaw1.L, Cheek.R/.L, Belt3.R/.L): 1.06e-6 to 1.81e-6 m on the solid or 2.9e-5 m on panels, held to 4e-6 and 4e-5.

Tie rules chosen here (the spec leaves the direction open): equal-area facets and equally long edges go to the greater centre or middle by x, y, z. That direction meets the truth on bastion's Chin and Tail and paladin's Cod; the other does not.

Size

1667 lines added, 1 removed (plate.py 802, test_plate.py 484, docs 152, fixtures 225 lines and 150 KB, test_kitbash 4). The spec estimated 1150.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-hard-plate-core.r1`, base 24a6730. ## What lands - `surfaces/blender/brokkr_kitbash/plate.py`: `check(document)` and `build(table, side=1)` for a `brokkr.plates.v0` table. Each row is a convex solid by `faces`, `slab` (outline or corners), `sections` or `points`; `clad` raises seeded detail panels with a bolt in each corner; `fits` gives anchor frames (`mark`, `hose_port`). numpy and the standard library; the hull is built here; the table alone decides the result. - `surfaces/blender/tests/test_plate.py` (57 tests) and `tests/fixtures/plates_{bastion,paladin,raptor}.json`: tables converted from `nibu/fable-bastion-2` (eeda8bf), `nibu/fable-paladin-3` (c35e57e), `nibu/fable-raptor-4` (0c27103) and the truth each branch's own builder made in Blender 5.3. - `tests/test_kitbash.py` OwnershipTests: `plate.py` joins the sources and the no-Blender pattern; no unseeded `Random()`, no experiment imports. - `docs/kitbash.md`: Hard plates. Nothing on main is deleted; no action, no bpy. The branches' own copies go in the migration follow-ups. ## Verification - `python -m unittest surfaces/blender/tests/test_plate.py`: 57 pass, 6 s (Python 3.13, Starfire). - Geometry parity (solid 1e-6 m, panels 1e-5 m, facet and bolt counts): 115 of 126 fixture plates. Paladin 53 of 53, raptor 45 of 50, bastion 17 of 23. - Six mutants each fail the tests: miter clamp 0.3 to 0.5 (13 plates), cut share to (0.3, 0.7) (15), lift coin removed (26), gap ignored (50, raptor), merge limit 0.5 to 0.05 (HullTests and 2 bastion plates), outer test 0.97 to 0.9 (CladTests only). - Render parity, Workbench flat, 1024 x 1024, five cameras, worst camera, branch meshes against `plate.build`'s (mean /255, share over 8/255): | mech | shipped | least mutant | bound (geometric mean) | | --- | --- | --- | --- | | paladin | 0.000029, 0.0000010 | 0.012072, 0.0006495 (taper + 0.01) | 0.00059, 0.000025 | | raptor | 0.000022, 0.0000010 | 0.004608 (taper), 0.0002213 (seed + 1) | 0.00032, 0.000015 | | bastion, less three plates | 0.005547, 0.0001459 | 0.253421, 0.0054789 (seed + 1) | 0.0375, 0.00089 | | bastion, whole set | 0.221505, 0.0050468 | 0.387753, 0.0103798 | over the ceiling (0.5, 0.001) | ## Where the truth is not met The branches build in float32 and leave two choices to Blender's mesh order. `test_plate.py`'s `KNOWN` names each plate and what is asserted of it instead: - **Bastion `Hull.Quarter.R/.L`**: the branch's `massing.corners` loses a corner its faces do bound (float32 inside test), so the branch's pod is smaller than the table's solid. `plate.build` has the corner. This is why bastion's whole-set render is over the ceiling. - **Bastion `Hull.BellySide.R`**: its split facet has two equally long edges; the branch cut from one on the right plate and the other on the left. No rule on the table meets both; the rule here (the greater middle) meets the left. - **Eight plates** (bastion `Hull.Cheek.R/.L`, `Hull.BellySide.L`; raptor `Torso.Jaw1.L`, `Cheek.R/.L`, `Belt3.R/.L`): 1.06e-6 to 1.81e-6 m on the solid or 2.9e-5 m on panels, held to 4e-6 and 4e-5. Tie rules chosen here (the spec leaves the direction open): equal-area facets and equally long edges go to the greater centre or middle by x, y, z. That direction meets the truth on bastion's Chin and Tail and paladin's Cod; the other does not. ## Size 1667 lines added, 1 removed (plate.py 802, test_plate.py 484, docs 152, fixtures 225 lines and 150 KB, test_kitbash 4). The spec estimated 1150. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
plate.py turns a brokkr.plates.v0 table into each plate's convex solid (by
faces, slab, sections or points), its seeded detail panels, their corner
bolts and its anchors' frames. The table alone decides the result: the hull
is built here, facets are ordered in the table frame, seeds are data.

Fixtures plates_bastion/paladin/raptor.json hold tables converted from the
three mech branches (eeda8bf, c35e57e, 0c27103) and the truth each branch's
own builder made in Blender 5.3. test_plate.py's KNOWN names the eleven
fixture plates the truth cannot be met on (float32 solves, a corner
bastion's builder lost, one tie Blender's loop order decided).

Cut hard-plate-core (aetheria-release:cut_spec:cut-hard-plate-core.r1).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The section states the brokkr.plates.v0 table (rows, solid forms, clad,
anchors, sides), the hull and facet rules, what build returns, the
refusals, and how the three mech fixtures are held, with the eleven plates
the branches' float32 builders keep apart. The fixtures are rewritten one
table row a line; their content is unchanged.

Cut hard-plate-core.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
plate.build draws a two-sided row with one seed (or no clad) once, at side +1, and its .L is the mirror of
its .R. A one-sided row at side -1 and a two-sided row with a pair of seeds are drawn on the mirrored solid
as before, as the mech branches' builders do (paladin's left thigh). _longest's docstring says greatest.

tests: Hull.Quarter.R/.L and Hull.BellySide.R are held, solid, facets, panels and bolts, to
plates_bastion.json's "repaired": the branch's builder at eeda8bf in Blender 5.3 with massing.corners'
inside test at 1e-5 m, and with massing.clad cutting from the other of the two tied edges. The panels whose
outline crosses itself are named (Hull.Cheek.R's render difference is one of them, by where Blender starts
its loop). The three fixtures build to one sha256 at 1e-9 m on Starfire and on Yggdrasil.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
eureka merged commit 845b6336ac into main 2026-12-03 14:31:54 +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!45
No description provided.