Skip to content

Draft: Stub for coincident intersection#55

Open
TacHawkes wants to merge 2 commits into
masterfrom
touching_shapes_improvements
Open

Draft: Stub for coincident intersection#55
TacHawkes wants to merge 2 commits into
masterfrom
touching_shapes_improvements

Conversation

@TacHawkes

@TacHawkes TacHawkes commented May 31, 2026

Copy link
Copy Markdown
Collaborator

This pull request implements the coincident intersection resolution scheme we discussed, assuming up to three coincident objects can be returned by the trace functions within a distance threshold. In this "tie-breaker" logic, I handle sandwiched coatings (currently only the ThinBeamsplitter) and touching volumetric shapes (such as cemented doublet lenses). These coincident elements are then stored directly in the Intersection object context. This allows specialized interact3d methods to query adjacent exiting/entering components and tailor custom refraction or reflection behavior without needing global lookups.

At least as of now, this merge request actually almost removes more code than it adds to BMO as we can now get rid of some "stupid" methods. The number of lines is just more at the moment, because my VSCode auto-reformatted some code.

@codecov

codecov Bot commented May 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.17886% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.68%. Comparing base (6ebe3bd) to head (d780189).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/System.jl 82.72% 19 Missing ⚠️
src/OpticalComponents/DoubletLenses.jl 10.00% 9 Missing ⚠️
...pticalComponents/Beamsplitters/ThinBeamsplitter.jl 97.56% 2 Missing ⚠️
src/OpticalComponents/Lenses.jl 89.47% 2 Missing ⚠️
src/AbstractTypes/AbstractBeam.jl 92.30% 1 Missing ⚠️
src/AbstractTypes/AbstractObject.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
- Coverage   73.46%   72.68%   -0.78%     
==========================================
  Files          61       61              
  Lines        3885     3888       +3     
==========================================
- Hits         2854     2826      -28     
- Misses       1031     1062      +31     

☔ 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.

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