Skip to content

Feature: UniformLineSource, UniformFanSource, center ray - #116

Merged
StackEnjoyer merged 2 commits into
masterfrom
feature/line-beam-sources
Oct 7, 2026
Merged

StackEnjoyer merged 2 commits into
masterfrom
feature/line-beam-sources

Conversation

@StackEnjoyer

@StackEnjoyer StackEnjoyer commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Features

  • Changes results: UniformDiscSource, UniformPointSource: the first ray now lies on the axis
  • UniformLineSource: parallel rays equidistant on a line, marginal rays included
  • UniformFanSource: rays from one point with equidistant angles in a plane
  • Center ray: first beam of every generated CollimatedSource and PointSource
  • BeamletOptics.DiscLine, BeamletOptics.ConeFan: public samplings of the two new sources
UniformFanSource UniformLineSource

Doc changes

  • Beam groups page: new section on line and fan sources, note on the center ray
  • Beam catalog: tiles for both new sources
  • Agent skill: SKILL.md, API.md, CHECKLIST.md, components/beams-and-sources.md updated

…ources (#91)

Add two-dimensional sources as constructors of the existing types:
UniformLineSource (a CollimatedSource, equidistant parallel rays on a line)
and UniformFanSource (a PointSource, equidistant angles in a plane), both
including the marginal rays, with the samplings DiscLine and ConeFan.

The first beam of every generated CollimatedSource and PointSource is now
the center ray, which starts at the source position along the source
direction. The sunflower patterns of UniformDiscSource and
UniformPointSource start at the center, i.e. their first ray moves onto
the axis; all other rays are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@StackEnjoyer StackEnjoyer added this to the v0.14.0 milestone Oct 7, 2026
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.15%. Comparing base (d36d686) to head (e582e1d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
+ Coverage   88.05%   88.15%   +0.09%     
==========================================
  Files          73       73              
  Lines        4246     4279      +33     
==========================================
+ Hits         3739     3772      +33     
  Misses        507      507              

☔ 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 merged commit 82bd172 into master Oct 7, 2026
7 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/line-beam-sources branch October 7, 2026 12:10
@StackEnjoyer StackEnjoyer mentioned this pull request Oct 7, 2026
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