You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Stand-alone script file to trace rays through a refractive optical system. Only on-axis systems that have spherical and flat surfaces can be modeled. The code represents surface geometry by using rational Bezier patches which is a special case of the two parameter non-uniform rational b-spline. Two tables of input data are required. "Surfaces" is the first table and includes the system prescription (similar to lens editors used with other software). "InputRays" is the second table and includes the starting position and direction of rays to be traced. Example tables are included in the code for a Double Gauss Photographic Objective. Rays outside the aperture of any surface are ignored.
Cite As
Chris Hopkins (2026). GeoRaytracerLite (https://www.mathworks.com/matlabcentral/fileexchange/81558-georaytracerlite), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.3 (4.42 KB)
MATLAB Release Compatibility
- Compatible with R2015b and later releases
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.3 | Changed array structure for wQ, wdS, & dS |
||
| 1.2 | Replaced sumsqr function and raised solver iteration cap to 10. Simplified some of the code. Verified compatibility with R2015b. |
||
| 1.1 | Version 1.1: Blocks rays that undergo total internal reflection and fixes accuracy issues for rays that are close to the edge of the clear aperture. |
||
| 1.0.0 |
