brokkr_kitbash.plate: hard plates from a plate table, in numpy alone (cut hard-plate-core) #45
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/hard-plate-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cut
aetheria-release:cut_spec:cut-hard-plate-core.r1, base24a6730.What lands
surfaces/blender/brokkr_kitbash/plate.py:check(document)andbuild(table, side=1)for abrokkr.plates.v0table. Each row is a convex solid byfaces,slab(outline or corners),sectionsorpoints;cladraises seeded detail panels with a bolt in each corner;fitsgives 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) andtests/fixtures/plates_{bastion,paladin,raptor}.json: tables converted fromnibu/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.pyOwnershipTests:plate.pyjoins the sources and the no-Blender pattern; no unseededRandom(), 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).plate.build's (mean /255, share over 8/255):Where the truth is not met
The branches build in float32 and leave two choices to Blender's mesh order.
test_plate.py'sKNOWNnames each plate and what is asserted of it instead:Hull.Quarter.R/.L: the branch'smassing.cornersloses a corner its faces do bound (float32 inside test), so the branch's pod is smaller than the table's solid.plate.buildhas the corner. This is why bastion's whole-set render is over the ceiling.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.Hull.Cheek.R/.L,Hull.BellySide.L; raptorTorso.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