brokkr_kitbash: attach, detach, boolean and apply; set_params keeps an assembly seated (cut chassis-kit-assembly) #25
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/chassis-kit-assembly"
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-chassis-kit-assembly.r1, base57c453f.brokkr_kitbashgains four host actions (attach,detach,boolean,apply), andset_paramsandreportlearn about connections. The kit format, the mechanical kit and the shapes are unchanged.What lands
core.py:FLIP,mate,residual,mate_refusalandjoint(numpy only).matrix_basis = S_parent @ Rz(roll) @ FLIP @ inverse(S_child).obj.parentunder an identity parent inverse, pluskit_socket,kit_parent_socketandkit_roll. Nothing else stores it.attachrefuses a child that has a parent, a loop, parts of two kits, an unknown socket, sockets that do not mate and an occupied socket, changing nothing.set_paramsrefuses a baked part, checks every connection the part is an end of against its new sockets before it writes, then seats the part and the parts attached to it.reportgivesconnection(parent,socket,parentSocket,roll,residual,holds) andbaked. It evaluates no modifier.booleanaddsKit Boolean <cutter>above the Bevel: Exact, self-intersection on,material_modeTRANSFER.applybakes the evaluated mesh, clears the modifiers and setskit_baked.docs/kitbash.md: the section "Assembling parts", four table rows, a longer recipe. The line saying mating, booleans and baking are not here is gone.Verification
python -m unittest discover -s surfaces/blender/tests: 454 tests OK (20 skipped as on main);MateTestsis new.tests/live/kitbash.py61 checks,tests/live/kitbash_assembly.py66 checks, both exit 0; both result files committed.Notes for review
applydrops trailing empty slots it gained. A cutter that has materials brings them under either mode; they are kept, after the part's own.equalsizes get the same 1e-9 relative slack the spec givesfits, so 0.2 against 0.198 is inside 1 percent.detachand aset_paramsthat seats nothing do not update the view layer: a mutant without those calls survived, so they went.🤖 Generated with Claude Code