Raytrace Program - Original

Version 1.1.0.0 (6.58 MB) by E65EnyOwC
The beginnings of an optical raytrace program with partial GUI interface

421 Downloads

Updated 11 May 2017

View License

The documentation for this code is rather limited. It works on Matlab 2014b and higher as of early 2017. To use it, unzip the file, make the main folder the current directory in Matlab and run 'startRaytraceO;' at the command prompt. From there, two figures should open. Separate the two figures so you can see them both. You can open up saved systems using the load system button and navigating to the saved system directory. Saved systems are saved as .fig files.
Notes about saved systems:
Not all the included systems use the full functionality of the program since some additions to the code were made after the systems were saved.
If a saved system has problems running (you get errors at the command line) a general fix can be this:
1) Reload the system (there is a button) - this actually updates the system to use the current code
2) Then go through all the surfaces, detectors, sources, and spaces and edit each one by simply opening their edit dialog boxes and closing them. This updates each element in the system to be fully functional.
The reason saved systems sometimes have problems is because when they transfer to another computer or are opened in a different version of Matlab than the one they were saved in, function references can sometimes get broken.
Additional note: This code is meant to be expanded upon. It is designed for versatility in modeling by allowing the user to define functions that interact with the data at surfaces, spaces, etc. The code is also has some tricks up its sleeve which can be discovered by experimenting with datatips and also by looking for UIContextMenus and tooltipstrings in the GUI interface.

Cite As

E65EnyOwC (2023). Raytrace Program - Original (https://www.mathworks.com/matlabcentral/fileexchange/62540-raytrace-program-original), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

RaytraceO/

RaytraceO/ClassesForOpticalObjects/

RaytraceO/Fcns4StartRaytraceO/

RaytraceO/GuiFunc/

RaytraceO/GuiFunc/DetectorObserving/

RaytraceO/GuiFunc/EditSource/

RaytraceO/GuiFunc/EditSpace/

RaytraceO/GuiFunc/EditSurf/

RaytraceO/GuiFunc/EditSurf/Geometry/

RaytraceO/GuiFunc/EditSurf/RayInteractions/

RaytraceO/GuiFunc/EditSurf/Windowing/

RaytraceO/GuiFunc/EditSurf/Zooms/

RaytraceO/TextTree/

RaytraceO/UserDefinedFunctions/DetectorFunctions/

RaytraceO/UserDefinedFunctions/Space__IndexSolves/

RaytraceO/UserDefinedFunctions/Surf_AbsorbtionSolves/

RaytraceO/UserDefinedFunctions/Surf_BackscatteringSolves/

RaytraceO/UserDefinedFunctions/Surf_IntersectSolves/

RaytraceO/UserDefinedFunctions/Surf_NormalSolves/

RaytraceO/UserDefinedFunctions/Surf_ReflectionSolves/

RaytraceO/UserDefinedFunctions/Surf_TransmissionSolves/

RaytraceO/UserDefinedFunctions/WindowingFunctions/

RaytraceO/UserDefinedFunctions/Zoom_Solves/

Version Published Release Notes
1.1.0.0

NC
Added additional directional control to illumination source editing.

1.0.0.0