Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ray.py Adding 3D point ray with evenly spaced rays to more accurately represent a physical point source. #25

Merged
merged 1 commit into from Feb 9, 2022

Conversation

szzer
Copy link
Contributor

@szzer szzer commented Feb 9, 2022

Because I wanted to be able to determine the amount of light that exits a lightguide, which is fed by a LED, I needed a 3d point source with evenly spaced rays. This is important since each ray then represents an equal amount of radiation energy.

The current 3d ray does not provide this. As I showed in on the FreeCAD Forum:
https://forum.freecadweb.org/viewtopic.php?f=8&t=59860&sid=c0e696d6f9f03e9f4185dd6419b78715&start=110

By implementing a paper from the Max-Planck-Institut I managed to create a 3d ray cloud with evenly spaced rays.
link to paper

In this pull request I would like to provide the improved 3d point ray to the Main developers and to the FreeCAD Community.
Since I'm not a programmer by training, my code might be not up to the desired standard, if so let it be an inspriration to improve it furter.

Please let me know what you think of it.

Added spherical rays which are evenly distributed.
@chbergmann chbergmann merged commit 25dcebc into chbergmann:main Feb 9, 2022
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.

None yet

2 participants