brokkr_kitbash: pin-axis pivots, tank lugs, a bracket, close for loops, sharp lathe points (cut kit-joints) #27
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/kit-joints"
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-kit-joints.r2, basef329f56.What changes for a caller:
end_a,end_a_back,end_b,end_b_back;base,base_back,rod_end,rod_end_back), z along the pin, y along the part. Two pinned parts share the pin's axis and the roll is the hinge angle. Scripts that attach by the old names still attach; where the part lands changes.lug_a,lug_b,lug_a_back,lug_b_back), and an eleventh part,bracket, whose pin face lies on its plate's centre plane: a second bracket turned half pins on the same plane, so a brace can meet a leg.brokkr_kitbash.close(ninth row) states the joint that closes a loop. Connections stay a tree; a closure is three properties on the closing part, written only when the two sockets already meet. It never moves anything.detachclears it. Reports carryclosure, andset_paramsreportsclosuresfor the scene; it refuses only a change after which the closure's sockets may no longer mate.[r, z, "sharp"]marks a profile point's ring as a crease (Built.sharp, the mesh'ssharp_edge). The reducer's two cone rings are marked.Proof: 465 unit tests pass;
tests/live/kitbash.py(79 checks) andtests/live/kitbash_assembly.py(107 checks) exit 0 in Blender 5.3 background, result files committed; mutants J1 to J13 each die. Every part but tank, strut, actuator and bracket builds the same bytes as atf329f56.🤖 Generated with Claude Code
Connections stay a tree owned by the child. A loop is closed by a closure: the closing part's kit_close_socket, kit_close_to (an object pointer) and kit_close_to_socket. brokkr_kitbash.close writes them only when the two sockets already meet (core.closure_residual within HELD, any roll) and writes nothing else; detach clears them, and now also accepts a part that states only a closure. Reports derive a closure's residual and holds each time. attach's inline occupancy scan is gone: occupant() is the one rule for attach and close, and counts closures at both ends. set_params refuses a change after which a closure's two sockets may no longer mate, checking closures before connections so the refusal names the closure, and otherwise only reports: its report lists every closure in the scene as closures [{part, to, holds}]. kitbash_assembly.py builds a braced leg on a tank's two lugs with rolls from the law of cosines and closes it; test_a_brace_closes_on_a_leg does the same in numpy (2.2e-16). Cut kit-joints. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>