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

2026-12-01

Meta Vens
brokkr_kitbash: a closure on a deleted, unlinked, scaled or doubly held part reads broken, with a reason
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>
2026-12-01 20:15:01 +01:00
Meta Vens
kitbash_assembly.py: a closure check that finds no closure fails by name instead of raising
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>
2026-12-01 19:17:56 +01:00
Meta Vens
brokkr_kitbash: close states a loop's closing joint and never moves anything
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>
2026-12-01 19:10:08 +01:00
Meta Vens
brokkr_kitbash: pivot sockets on the pin axis, tank mount lugs, a bracket
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>
2026-12-01 19:02:38 +01:00
Meta Vens
brokkr_kitbash: sharp lathe points; a flat profile is refused to a tolerance; pins for the lip and the apply clamp
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>
2026-12-01 18:56:56 +01:00