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

Open
eureka wants to merge 4 commits from nibu/trace-fit into main
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>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin nibu/trace-fit:nibu/trace-fit
git switch nibu/trace-fit

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff nibu/trace-fit
git switch nibu/trace-fit
git rebase main
git switch main
git merge --ff-only nibu/trace-fit
git switch nibu/trace-fit
git rebase main
git switch main
git merge --no-ff nibu/trace-fit
git switch main
git merge --squash nibu/trace-fit
git switch main
git merge --ff-only nibu/trace-fit
git switch main
git merge nibu/trace-fit
git push origin main
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.