brokkr_kitbash: roll, aim and reach pose an attached part in place, solved in closed form (cut kit-roll-aim) #29
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/kit-roll-aim"
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
kit-roll-aim(aetheria-release:cut_spec:cut-kit-roll-aim.r1), on980ae6a.Three actions change an attached part's roll where it hangs, without detaching it:
brokkr_kitbash.rollstates the roll.brokkr_kitbash.aimsolves the roll that turns one of the part's own axes as far toward a world direction as its pin lets it:atan2(B, A).brokkr_kitbash.reachsolves the roll that brings one of the part's sockets to a plane:atan2(B, A) ± acos((height - C) / hypot(A, B)), the root nearer the roll it has.core.roll_termsgivesA,B,C(d . p(roll) = A cos + B sin + C). Nothing is scanned.write_connectionis now the one writer of a connection (parent, seat,kit_socket,kit_parent_socket,kit_roll); attach's inline write moved into it. Each of the three reportsclosuresasset_paramsdoes and never seats one.Proof
python -m unittest discover -s surfaces/blender/tests: 470 tests, OK (20 skipped). New:PoseTests(three),test_the_pose_rows_take_scalars_inside_their_bounds,test_only_write_connection_writes_the_roll(wastest_only_attach_writes_the_roll),test_no_roll_is_searched.tests/live/kitbash.py79 checks,kitbash_assembly.py119, the newkitbash_pose.py39; all exit 0, result files committed.Timing (Starfire, not committed)
The experiment's Heron and Tarantula (branch
nibu/fable-mech-experiments,13f47e4), built three times each, interleaved, medians of build wall time, with the experiment's helpers and with the same helpers calling roll, aim and reach:The posed mechs differ by at most 0.38 degrees in any roll and 13 mm in any part's position (the scans stepped 1 degree).
Shared files
Cut
shell-cutsedits the same lists (classes,brokkr_actions.json,ROWS, the two live row lists, the docs' action table and its count of operators). Whichever merges second rebases; the overlaps are list entries.🤖 Generated with Claude Code
b6cbca079atoc788b9d9b6