Skip to content

Feature: remove retracing, SDF miss exit - #111

Merged
StackEnjoyer merged 3 commits into
masterfrom
feature/remove-retracing
Oct 7, 2026
Merged

StackEnjoyer merged 3 commits into
masterfrom
feature/remove-retracing

Conversation

@StackEnjoyer

@StackEnjoyer StackEnjoyer commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Features

  • Breaking: solve_system!: keyword retrace removed, every call solves the beam from its start
  • Breaking: children! throws for a beam that already has children; relaunch! replaces them
  • Breaking: retrace_system!, replace!(beam, interaction, index), wavelength!(::GaussianBeamlet, λ) removed
  • solve_system!: no empty!(beam) needed after objects were moved, added or removed

Doc changes

  • Retracing removed from the core, systems, sources, beamsplitter and Michelson pages
  • Agent skill: SKILL.md, API.md, WORKFLOW.md, CHECKLIST.md, components/systems-and-groups.md, template 05 updated

Internal changes

  • SDF ray marching: a miss ends after about 60 steps instead of 1000, full solves about 11× faster
  • Version 0.14.0

Merge sequence

  1. Feature: remove retracing, SDF miss exit #111 this branch
  2. Feature: bounding spheres for shapes, render_bounding_sphere! #112
  3. Tag BMO v0.14.0 - breaking
  4. GUI branches

Hugo Uittenbosch and others added 2 commits October 5, 2026 16:37
- solve_system!: the retrace keyword is gone; every beam of the queue is
  reset with empty! and traced, the group method resets the group first
- delete retrace_system!, solve_leaf!, replace!(beam, interaction, index),
  _modify_beam_head! and _last_beam_intersection
- children! throws an ArgumentError on a beam that already has children,
  relaunch! always replaces the children
- tests: new testset "Solving again" (moved and re-solved beam equals a
  new one, object moved into a path, kept beam attached again, failed
  group solve), retrace tests rewritten as re-solve tests
- docs, docstrings and agent skill describe solving again; skill files
  updated: SKILL.md, API.md, WORKFLOW.md, CHECKLIST.md,
  components/systems-and-groups.md, templates/05_periscope_objectgroup.jl
- version 0.14.0

Closes #102

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A ray that leaves an SDF shape doubled its step until the path length
overflowed to Inf, which takes all 1000 iterations. It now counts as a
miss once it has travelled SDF_MISS_DISTANCE, i.e. after about 60 steps.
Hits are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.05%. Comparing base (22f6075) to head (c91cfe4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
- Coverage   88.50%   88.05%   -0.45%     
==========================================
  Files          73       73              
  Lines        4524     4246     -278     
==========================================
- Hits         4004     3739     -265     
+ Misses        520      507      -13     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@StackEnjoyer StackEnjoyer added this to the v0.14.0 milestone Oct 6, 2026
@StackEnjoyer
StackEnjoyer merged commit 6f5b55f into master Oct 7, 2026
6 of 7 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/remove-retracing branch October 7, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant