Skip to content

feat: render point/arc source rays as continuous filled regions at high density - #19

Merged
veillette merged 2 commits into
mainfrom
claude/continuous-rays-density-73chl
Mar 21, 2026
Merged

veillette merged 2 commits into
mainfrom
claude/continuous-rays-density-73chl

Conversation

@veillette

Copy link
Copy Markdown
Collaborator

When ray density exceeds a threshold (0.8), rays from PointSourceElement
and ArcLightSource are rendered as filled polygons between adjacent rays
instead of individual lines. This produces a smooth continuous beam
appearance that extends through all optical interactions (reflections,
refractions, diffraction). A proximity check on segment endpoints
prevents incorrect filling between divergent ray paths.

https://claude.ai/code/session_01DpSEWjiYmCQCBJG4ZDWaMB

claude added 2 commits March 21, 2026 00:35
…gh density

When ray density exceeds a threshold (0.8), rays from PointSourceElement
and ArcLightSource are rendered as filled polygons between adjacent rays
instead of individual lines. This produces a smooth continuous beam
appearance that extends through all optical interactions (reflections,
refractions, diffraction). A proximity check on segment endpoints
prevents incorrect filling between divergent ray paths.

https://claude.ai/code/session_01DpSEWjiYmCQCBJG4ZDWaMB
Split the monolithic paintContinuousRays method into smaller functions
(groupSegmentsBySource, isQuadOutside, fillBetweenChains) to satisfy
the linter's cognitive complexity limit and remove non-null assertions.

https://claude.ai/code/session_01DpSEWjiYmCQCBJG4ZDWaMB
@veillette
veillette merged commit d6f3d68 into main Mar 21, 2026
1 check passed
@veillette
veillette deleted the claude/continuous-rays-density-73chl branch March 26, 2026 15:43
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.

2 participants