brokkr_kitbash: pin-axis pivots, tank lugs, a bracket, close for loops, sharp lathe points (cut kit-joints) #27

Merged
eureka merged 5 commits from nibu/kit-joints into main 2026-12-01 19:25:43 +00:00
Owner

Cut aetheria-release:cut_spec:cut-kit-joints.r2, base f329f56.

What changes for a caller:

  • Pivot sockets lie on the pin. The strut's and actuator's end-face pivots are gone. Each pin carries a socket on each end face (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.
  • Tank lugs and a bracket. A mount lug on each side of each tank strap (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. detach clears it. Reports carry closure, and set_params reports closures for the scene; it refuses only a change after which the closure's sockets may no longer mate.
  • Sharp lathe points. [r, z, "sharp"] marks a profile point's ring as a crease (Built.sharp, the mesh's sharp_edge). The reducer's two cone rings are marked.
  • The five Low findings of verdict cut-kit-shape-vocabulary.s1: a flat profile is refused to a tolerance (FLAT 5.1e-10), every shipped lathe profile is tested for crossing itself, apply's slot clamp is pinned per face, and the doc's reducer range and Boolean cost are restated.

Proof: 465 unit tests pass; tests/live/kitbash.py (79 checks) and tests/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 at f329f56.

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-kit-joints.r2`, base f329f56. What changes for a caller: - **Pivot sockets lie on the pin.** The strut's and actuator's end-face pivots are gone. Each pin carries a socket on each end face (`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. - **Tank lugs and a bracket.** A mount lug on each side of each tank strap (`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. `detach` clears it. Reports carry `closure`, and `set_params` reports `closures` for the scene; it refuses only a change after which the closure's sockets may no longer mate. - **Sharp lathe points.** `[r, z, "sharp"]` marks a profile point's ring as a crease (`Built.sharp`, the mesh's `sharp_edge`). The reducer's two cone rings are marked. - The five Low findings of verdict cut-kit-shape-vocabulary.s1: a flat profile is refused to a tolerance (FLAT 5.1e-10), every shipped lathe profile is tested for crossing itself, apply's slot clamp is pinned per face, and the doc's reducer range and Boolean cost are restated. Proof: 465 unit tests pass; `tests/live/kitbash.py` (79 checks) and `tests/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 at f329f56. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A lathe profile point may be [r, z, "sharp"]: Built.sharp lists the ring edges
of the marked points in every copy, and write_mesh sets sharp_edge on exactly
those edges. check_kit refuses any other third item, a fourth, and a mark at
an open profile's end. The reducer's two cone rings are sharp.

_lathe refuses a closing area at or below FLAT (5.1e-10) of the square of the
profile's largest coordinate, so a constant-z profile is refused whatever its
digits (shipped least 6.1e-3, float noise 4.3e-17).

test_no_lathe_profile_crosses_itself walks every lathe of the kit at every
corner of its params: the nozzle lip fix is pinned. kitbash_assembly.py gives
the Gap cutter two brass faces and asks that each face keeps its own slot.
kitbash.md: the reducer mates a fitting only from small_r 0.03, and Boolean
cost as ratios plus the times read through the add-on.

Takes the five Low findings of verdict cut-kit-shape-vocabulary.s1
(cut kit-joints).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The strut's and actuator's end-face pivot sockets (z along the part) are gone.
Each pin now carries a socket on each of its end faces, z along the pin and y
along the part: end_a, end_a_back, end_b, end_b_back; base, base_back, rod_end,
rod_end_back. Two pinned parts share the pin's axis and the connection's roll
is the hinge angle. Scripts that attach by the old names still attach; where
the part lands changes.

The tank gains a mount lug on each side of each strap (shapes 4 and 5, sockets
lug_a, lug_b, lug_a_back, lug_b_back); its other shapes and sockets build the
same bytes. A bracket (part 11) seats a pin on a flat mount: its pivot face
lies on its plate's centre plane, so a bracket turned half about its mount
pins on the same plane facing the first.

Every other part builds byte-identical V, faces, counts, smooth and shape
against f329f56 (21 draws each). A box cut from the tank reads 502 ms at 6
shells and 507 ms at 10 (4 alternating processes of 5).

Cut kit-joints.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
Mutant J5 (occupant ignores closures) ended the script on an AttributeError
before any check printed; it now dies on the three occupancy refusals.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Fixes the findings of verdict cut-kit-joints.s1.

closure() reads the other part as gone when the pointer is empty or the object
is in no collection: the pointer itself keeps a part deleted with the Delete
operator in the file as an orphan, and the closure read it as holding. close
refuses a part in no collection, and an orphaned closing part holds no socket.

A closure's report gains reason, null when it holds: the other part is gone
(to null); it cannot be read against (scaled by hand, not a kit part, of
another kit; to names it); another part's closure names the same socket, as a
duplicated closing part leaves, and then neither holds; or the sockets stand
apart.

set_params lists the closures its own part is an end of first, then the
broken, then the rest, and leaves rows off the end when a receipt is full. It
reads each kit file once per report: 3.9 s to 0.39 s at 150 closures, 12.8 s
to 1.16 s at 450 (the cost was linear, two kit parses a closure).

kitbash_assembly.py: close of a brace moved 3.2e-4 is refused, a receipt with
room for one row keeps the opened closure and counts the other, and the
unlink, Delete, scale and duplicate cases.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
eureka merged commit 980ae6a8a9 into main 2026-12-01 19:25:43 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Brokkr!27
No description provided.