brokkr_kitbash: cut any mesh at a ray, a cutters kit with floor sockets, one collection Boolean per operation, shared socket types (cut shell-cuts) #28
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/shell-cuts"
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-shell-cuts.r1, base980ae6a.What changes
brokkr_kitbash.cut: cuts any mesh (a kit part or an armor cage) where a ray meets it. The cut is a placed part of a new kit,cutters(box,cyl,slot,slab), parented to the target under an identity parent inverse. The cutter object owns the recess frame (itsmatrix_basis) and size (its params);box,cylandslotcarry afloorsocket on the bottom of the recess, and machinery attaches there with the ordinaryattach. The ray is cast at the target with its Kit Booleans off.Kit Difference,Kit Union,Kit Intersect, above the Bevel), each over a collection of cutters. The modifier per cutter (Kit Boolean <cutter>, operand OBJECT) is deleted.booleantakes any rigid mesh target;applyremoves the collections it left without users and keeps the cutter objects.core.jointno longer refuses two kits.mesh_objectrefuses an object in no collection, for every operator at once (findingcut-kit-joints.s2.attach-onto-orphan-and-ends-first-unpinned, part 1); the ends-first order of aset_paramsreport's closures is pinned (part 2).Proof
python -m unittest discover -s surfaces/blender/tests: 475 tests, OK (20 skipped).tests/live/kitbash.py79 checks,kitbash_assembly.py118,kitbash_shell.py(new) 47,mesh_polish.py40, all exit 0.Cost (Blender 5.3, Starfire, 5 interleaved evaluations, a pod-like shell of 5000 faces with 8 cutters placed by
cut): one collection Boolean 1.89 s, a modifier per cutter 12.6 s, one joined cutter 1.81 s; the same faces and volume. Imagination's probe read 2.04, 14.7 and 1.94 s.Known limits, for the next round
cutitself takes a few milliseconds, but Blender evaluates the changed target after each action: a cut costs one Boolean evaluation. Heron's pod with 15 cutters took 113 s through actions against 4.7 s as one joined cutter evaluated once.setObjectTransformon the cutter afterwards.Sibling cut kit-roll-aim edits the same lists (
classes,brokkr_actions.json, the actions table,ROWS,OwnershipTests, the live row lists); whichever merges second rebases.🤖 Generated with Claude Code