brokkr_reference.fit_shell: a shell's traced runs fitted through solved cameras, accepted only where the built runs explain every trace (cut trace-fit) #41

Merged
eureka merged 10 commits from nibu/trace-fit into main 2026-12-03 04:58:59 +00:00
Owner

Cut aetheria-release:cut_spec:cut-trace-fit.r1, on main after PR 36 and PR 40.

brokkr_reference.fit_shell fits a kitbash loft shell's sheet to traces of its hard crease and rim runs, each seen through a scene camera, and returns the fitted sheet only where the built runs explain every trace. It writes nothing: brokkr_kitbash.shell stays the cage's one writer.

  • core.fit_runs: the residual is each built point's pixel distance to its trace plus the run's two ends; analytic Jacobian, Gauss-Newton with LM damping, a prior holding each point to the sheet as given. A mirrored half is the same parameters seen again. No correspondence search.
  • Acceptance: every point of every trace within tol px of its built run, or a refusal naming the trace and the span.
  • Per moved point: m_per_px along its sight line and prior_share.
  • core.fit_sheet: the sheet's ring and column runs; refuses semi-sharp runs, dart ends, points held partway, free cages and oversized results before fitting.

Measured

  • Mirrored column, one view at a time, blockings 0.10 m and 0.30 m off a 2 m crease: within 0.67 mm, 18 of 18 accepted.
  • Strokes doubled back 3% of the view off: 27 of 27 refused (least unexplained 8.98 px against 3). Without the check all 27 return, up to 0.104 m wrong.
  • Analytic Jacobian 0.07 to 0.21 s against 2.3 to 3.9 s by differences.
  • Live (Blender 5.3): 13 of 13 checks; fitted runs 0.62 mm from the design from 0.13 m off; crease_run within 1.7e-7 m of Blender's build.

Deviations from the spec, for review

  1. The Orchid c09 hand pair is refused at the default 3 px: the left trace's first 10 px stand up to 9.2 px off the built run (the two tips are not one point and its mirror image through the hand-solved camera, 13 px rms). The test pins that refusal and asks the fit at 18.5 px, where it is explained.
  2. m_per_px along the whole sight line, as specified, includes a cage point's slide along its own run where the run recedes along the view: a determined mirrored pair reads prior_share 0.63 to 0.88 on inner points there. Documented and pinned; whether the reading should exclude that slide is Imagination's call.
  3. A single trace reads prior_share 1.0 exactly (the spec's probe read 0.36 to 0.64).
  4. PR 40 made Sheet cover free cages: fit_sheet refuses one (no rings or columns); fit_runs takes any cage's chains.
  5. Follow-up reference-lift-s5-lows: _off now serves the explained check and core.seen is pinned by a test, so neither is deleted; no O6 or O8 label exists in the repository's files.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-trace-fit.r1`, on main after PR 36 and PR 40. `brokkr_reference.fit_shell` fits a kitbash loft shell's sheet to traces of its hard crease and rim runs, each seen through a scene camera, and returns the fitted sheet only where the built runs explain every trace. It writes nothing: `brokkr_kitbash.shell` stays the cage's one writer. - `core.fit_runs`: the residual is each built point's pixel distance to its trace plus the run's two ends; analytic Jacobian, Gauss-Newton with LM damping, a prior holding each point to the sheet as given. A mirrored half is the same parameters seen again. No correspondence search. - Acceptance: every point of every trace within `tol` px of its built run, or a refusal naming the trace and the span. - Per moved point: `m_per_px` along its sight line and `prior_share`. - `core.fit_sheet`: the sheet's ring and column runs; refuses semi-sharp runs, dart ends, points held partway, free cages and oversized results before fitting. Measured - Mirrored column, one view at a time, blockings 0.10 m and 0.30 m off a 2 m crease: within 0.67 mm, 18 of 18 accepted. - Strokes doubled back 3% of the view off: 27 of 27 refused (least unexplained 8.98 px against 3). Without the check all 27 return, up to 0.104 m wrong. - Analytic Jacobian 0.07 to 0.21 s against 2.3 to 3.9 s by differences. - Live (Blender 5.3): 13 of 13 checks; fitted runs 0.62 mm from the design from 0.13 m off; `crease_run` within 1.7e-7 m of Blender's build. Deviations from the spec, for review 1. The Orchid c09 hand pair is **refused at the default 3 px**: the left trace's first 10 px stand up to 9.2 px off the built run (the two tips are not one point and its mirror image through the hand-solved camera, 13 px rms). The test pins that refusal and asks the fit at 18.5 px, where it is explained. 2. `m_per_px` along the whole sight line, as specified, includes a cage point's slide along its own run where the run recedes along the view: a determined mirrored pair reads `prior_share` 0.63 to 0.88 on inner points there. Documented and pinned; whether the reading should exclude that slide is Imagination's call. 3. A single trace reads `prior_share` 1.0 exactly (the spec's probe read 0.36 to 0.64). 4. PR 40 made `Sheet` cover free cages: `fit_sheet` refuses one (no rings or columns); `fit_runs` takes any cage's chains. 5. Follow-up `reference-lift-s5-lows`: `_off` now serves the explained check and `core.seen` is pinned by a test, so neither is deleted; no O6 or O8 label exists in the repository's files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The cage points of a loft's traced hard runs move until the runs, as crease_run builds them and the cameras draw
them, lie on their traces: analytic Jacobian, Gauss-Newton with LM damping, a prior that holds each point to the
sheet as given. A fit is returned only where every point of every trace lies within tol px of its built run;
otherwise the refusal names the trace and the span. Per moved point the report says metres per pixel along its
sight line and the prior's share of that. Runs crease_run does not build (semi-sharp, a dart end, a point held
partway) and free cages are refused before fitting.

FitTests with the Orchid c09 fixture (camera record, frame, two hand traces, a blocking column; no mesh).
core.seen is pinned against project; _off now serves the explained check (follow-up reference-lift-s5-lows).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
fit_shell's float bounds stand just under the row's (a float property rounds 0.001 and 0.1 up).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The gate on a trace's worst point read the Orchid pair's tip (9.20 px) and its least 1% overdraw (9.12) alike;
the trimmed percentile reads them 0.69 and 4.27, and the pair is accepted at the default. TRIM, PART and TOL
are pinned from Soul's 296 fits by lodur:ruling:deterministic-bound-margin (FitTests' docstring states the
sets, and what the default does not separate). m_per_px leaves a point's slide along its own run out: pairs
read 0.080 at most, a single trace's inner points 0.503 and up. fit_sheet takes {verts: [...]} runs on a free
cage through Sheet.mirror_of; miss_px is gone, worst_px is reported beside the reading.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
No test claimed the trim (hand traces 3.76 against 3.26, the Orchid 0.80 against 0.69). Untrimmed, the traces
to accept read 3.76 at most and the least to refuse 7.27: TOL 5.2, separation 1.39 each side. The clean-stroke
test is named for the sensitivity it reads; fit_runs' docstring states the hand-trace overshoot (13 of 24, up
to 2.45 times).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
eureka merged commit e141d003b8 into main 2026-12-03 04:58:59 +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!41
No description provided.