Optiland and RayCrafter vs Zemax
SMOD4.5: Optiland and RayCrafter against Zemax
A galvo scan system (a 4.5 mm beam, a 54 mm scan lens, a 250 mm tube lens, a 45° fold mirror and an ideal 12.5 mm objective) compared with our own Zemax run at three wavelengths, and below with the plots exported with the design. Optiland and RayCrafter trace every ray as Zemax does, to 1e-13 mm. Through the ideal objective Optiland's wavefront is wrong off axis (12 waves where Zemax has 0.16), and after the fold its pupils and distortion are wrong or missing. RayCrafter corrects the wavefront and comes within 0.02 waves of Zemax (0.01 before it took up the file's Gaussian pupil apodization, raycrafter #140, which moves its RMS wavefront away from Zemax's here); its single-wavelength MTF does not work here. Zemax's own RMS spot operand disagrees with Zemax's own rays here, by up to 46%, so it is not used.
Zemax's own two methods (FFT and Huygens) disagree with each other by more than our fail limit. The rows below keep their verdicts, each against one Zemax number. Where RayCrafter lies inside the band between Zemax's two numbers it is no further from either than they are from each other; where it lies outside, it is further from both than Zemax's own methods are from each other. Each row's note and Zemax against itself give both Zemax numbers, their difference and RayCrafter's value.
- MTF. Zemax's FFT MTF and its Huygens MTF differ by up to 0.124 (at 10 deg), 6.2 times our fail limit of 0.02. Taking every frequency, RayCrafter's MTF is beside the band (outside it by up to the fail limit of 0.02) at 0 deg, 5 deg; outside the band (by more than 0.02) at 6.5 deg, 7 deg, 10 deg, the band being the range between Zemax's two curves. Plots with both Zemax curves, the band and RayCrafter's: 10 deg.
- Strehl ratio. Zemax's Huygens PSF and the Strehl ratio of its own Wavefront Map differ by up to 0.0201 (1.01 times the fail limit of 0.02). RayCrafter's Strehl ratio is beside the band (outside it by up to the fail limit of 0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg; outside the band (by more than 0.02) at 10 deg. Plot of every Zemax number.
- RMS wavefront. Zemax gives one number per field, so there is no Zemax spread to show for it.
- Optiland: Focal length, f-number, exit pupil, differs by 91.08 %
- Optiland: OPD of every ray, differs by 129.5 waves
- Optiland: Zernike coefficients (37 standard), differs by 39.56 waves
- Optiland: RMS wavefront against field, from Optiland's OPD, differs by 12.2 waves
- Optiland: RMS wavefront against field, RmsWavefrontErrorVsField as it comes, differs by 46.14 waves
- Optiland: Strehl ratio, FFTPSF, glass absorption divided out, differs by 0.941
- Optiland: Strehl ratio, FFTPSF as it comes, differs by 0.941
- Optiland: MTF, tangential and sagittal, every field, differs by 0.9782
- Optiland: Distortion, f-tan and f-theta, gives no number (Optiland gives no number (issue 2))
- Optiland: Grid distortion, largest, gives no number (ValueError: zero-size array to reduction operation maximum which has no identity (issue 2))
- Optiland: Seidel coefficients, sizes, differs by 0.001395 mm
- RayCrafter: RMS wavefront against field, differs by 0.01854 waves
- RayCrafter: Strehl ratio, every field, differs by 0.07613
- RayCrafter: MTF plot (one wavelength), differs by 0.1202
Every failing row of the tables below, against our own Zemax run.
- RayCrafter: RMS wavefront against field, Strehl ratio and one-wavelength MTF off axis. The RMS wavefront differs from Zemax's by up to 0.01854 waves (every wavelength); the Strehl ratio by up to 0.0761 at 10 deg (0.0425 with every ray at the same amplitude, as in Zemax's Huygens PSF); the MTF by up to 0.120 from Zemax's Huygens MTF at 10 deg. Cause: In part known. RMS wavefront: RayCrafter weights it by the file's Gaussian apodization and Zemax does not (raycrafter #244, which names this row); the rest grows with field angle, as on fold_SMOD45 (raycrafter #199). Strehl ratio and MTF: the ideal objective follows the tangent law, so the density of rays in direction cosine varies across the pupil, and RayCrafter's energy-conserving weighting of the pupil, Zemax's Huygens weighting (every ray alike) and its FFT weighting (even) all differ (raycrafter #236, evaluation #86); what is left at 10 deg is open in raycrafter #199.
System layout
WorksThe import kept all 21 surfaces: the coordinate breaks, the 45° mirror, the PBS cube and the paraxial objective. Thicknesses, radii, glasses, fields and wavelengths match the Zemax file.

Optiland against Zemax
Optiland 0.6.3, as released, with the file preparation and patches listed under "Optiland issues found". Nothing here uses RayCrafter. Each row is the largest difference from our own Zemax run (OpticStudio 24.1.3) over every galvo angle or field of every system below.
Not matching: partial and fail rows.
| Quantity | Largest difference from Zemax | Match / partial within | Result |
|---|---|---|---|
| Focal length, f-number, exit pupilSizes; Optiland's signs may differ after a mirror | 91.08 % | 0.0001 / 0.1 % | Fail |
| OPD of every ray | 129.5 waves | 0.001 / 0.01 waves | Fail |
| Zernike coefficients (37 standard) | 39.56 waves | 0.001 / 0.01 waves | Fail |
| RMS wavefront against field, from Optiland's OPDPiston and tilt removed, as Zemax does, every wavelength | 12.2 waves | 0.001 / 0.01 waves, or 1 % of Zemax's if larger, to fail | Fail |
| RMS wavefront against field, RmsWavefrontErrorVsField as it comesA different meaning: piston and tilt are kept | 46.14 waves | 0.001 / 0.01 waves, or 1 % of Zemax's if larger, to fail | Fail |
| Strehl ratio, FFTPSF, glass absorption divided outAgainst Zemax's Huygens PSF, which prints three decimals and is itself a little above what Zemax's own wavefront gives | 0.941 | 0.005 / 0.02 | Fail |
| Strehl ratio, FFTPSF as it comesA different meaning: light absorbed by the glass counts as lost | 0.941 | 0.005 / 0.02 | Fail |
| MTF, tangential and sagittal, every field | 0.9782 | 0.005 / 0.02 | Fail |
| Distortion, f-tan and f-thetaOptiland gives no number (issue 2) | none percentage points | 0.005 / 0.05 percentage points | Fail |
| Grid distortion, largestValueError: zero-size array to reduction operation maximum which has no identity (issue 2) | fails | Fail | |
| Seidel coefficients, sizesZemax prints six decimals. Optiland's signs may be opposite | 0.001395 mm | 1e−06 / 1e−05 mm | Fail |
All 20 rows, matches included
| Quantity | Largest difference from Zemax | Match / partial within | Result |
|---|---|---|---|
| Refractive index of each glassN-SF6HT, N-LAK22, N-BK7, N-SF1, N-SF5, N-SK2 | 2.22e−16 | 1e−06 / 0.0001 | Match |
| Position of every surface | 2.34e−13 mm | 1e−09 / 1e−06 mm | Match |
| Rays at the image, ray by rayThe rays Zemax traced, every galvo angle or field, every wavelength | 6.22e−14 mm | 1e−06 / 0.001 mm | Match |
| Ray directions at the imageDirection cosines. Zemax's are reversed after an odd number of mirrors | 9.35e−15 | 1e−09 / 1e−06 | Match |
| Largest ray radius on every surface | 5.51e−14 mm | 1e−06 / 0.001 mm | Match |
| RMS spot of the same raysThe rays that get through, every one counted alike | 0 % | 0.1 / 2 % | Match |
| Focal length, f-number, exit pupilSizes; Optiland's signs may differ after a mirror | 91.08 % | 0.0001 / 0.1 % | Fail |
| OPD of every ray | 129.5 waves | 0.001 / 0.01 waves | Fail |
| Zernike coefficients (37 standard) | 39.56 waves | 0.001 / 0.01 waves | Fail |
| RMS spot of every field, against Zemax's own raysZemax's RMS operand differs from Zemax's own rays by up to 46% here, so it is not used | 0 % | 0.1 / 2 % | Match |
| RMS wavefront against field, from Optiland's OPDPiston and tilt removed, as Zemax does, every wavelength | 12.2 waves | 0.001 / 0.01 waves, or 1 % of Zemax's if larger, to fail | Fail |
| RMS wavefront against field, RmsWavefrontErrorVsField as it comesA different meaning: piston and tilt are kept | 46.14 waves | 0.001 / 0.01 waves, or 1 % of Zemax's if larger, to fail | Fail |
| Strehl ratio, FFTPSF, glass absorption divided outAgainst Zemax's Huygens PSF, which prints three decimals and is itself a little above what Zemax's own wavefront gives | 0.941 | 0.005 / 0.02 | Fail |
| Strehl ratio, FFTPSF as it comesA different meaning: light absorbed by the glass counts as lost | 0.941 | 0.005 / 0.02 | Fail |
| MTF, tangential and sagittal, every field | 0.9782 | 0.005 / 0.02 | Fail |
| Distortion, f-tan and f-thetaOptiland gives no number (issue 2) | none percentage points | 0.005 / 0.05 percentage points | Fail |
| Grid distortion, largestValueError: zero-size array to reduction operation maximum which has no identity (issue 2) | fails | Fail | |
| Field curvature, FieldCurvature as it comesAt the edge of the field | 0.001874 mm | 0.01 / 0.1 mm | Match |
| Field curvature, from Optiland's raysNear-axis rays of each beam, in the image surface's own axes | 1.71e−06 mm | 0.01 / 0.1 mm | Match |
| Seidel coefficients, sizesZemax prints six decimals. Optiland's signs may be opposite | 0.001395 mm | 1e−06 / 1e−05 mm | Fail |
RayCrafter against Zemax
Tested at commit 5ecb2efd of dev, not the release on PyPI.
The rows below are on a system with a flat image.
Not matching: partial and fail rows.
| Quantity | Largest difference from Zemax | Match / partial within | Result |
|---|---|---|---|
| RMS wavefront against fieldEvery wavelength. Zemax gives one RMS wavefront number per field (its RMS Wavefront operand), so there is no Zemax spread to show for this row: it compares that one number with RayCrafter's | 0.01854 waves | 0.001 / 0.01 waves, or 1 % of Zemax's if larger, to fail | Fail |
| Strehl ratio, every fieldRayCrafter's Strehl ratio on the pixel grid of Zemax's Huygens PSF, as Zemax reads its own (its largest pixel); Zemax's prints three decimals. RayCrafter's PSF weights each ray by sqrt(J), J being how far its part of the pupil spreads over direction cosine, so that energy is conserved (raycrafter #236); Zemax's Huygens PSF gives every ray the same amplitude. With every ray at the same amplitude RayCrafter's Strehl ratio is 0.8461 at 6.5 deg (0.0031 from Zemax's 0.843, against 0.0117 as it is); 0.7995 at 7 deg (0.0065 from Zemax's 0.793, against 0.0179 as it is); 0.3705 at 10 deg (0.0425 from Zemax's 0.328, against 0.0761 as it is). The row scores RayCrafter as it is. Zemax's own Strehl numbers differ by more than the fail limit (0.02) at 10 deg. 0 deg: Zemax Huygens PSF 0.997, Zemax Wavefront Map 0.997 (they differ by 0.0002, within the fail limit of 0.02), RayCrafter 0.997: beside the band: 0.000 outside it, which is within the fail limit of 0.02; 5 deg: Zemax Huygens PSF 0.943, Zemax Wavefront Map 0.933 (they differ by 0.0095, within the fail limit of 0.02), RayCrafter 0.947: beside the band: 0.004 outside it, which is within the fail limit of 0.02; 6.5 deg: Zemax Huygens PSF 0.843, Zemax Wavefront Map 0.837 (they differ by 0.0058, within the fail limit of 0.02), RayCrafter 0.855: beside the band: 0.012 outside it, which is within the fail limit of 0.02; 7 deg: Zemax Huygens PSF 0.793, Zemax Wavefront Map 0.785 (they differ by 0.0085, within the fail limit of 0.02), RayCrafter 0.811: beside the band: 0.018 outside it, which is within the fail limit of 0.02; 10 deg: Zemax Huygens PSF 0.328, Zemax Wavefront Map 0.308 (they differ by 0.0201, more than the fail limit of 0.02), RayCrafter 0.404: outside the band by 0.076, more than the fail limit of 0.02 | 0.07613 | 0.005 / 0.02 | Fail |
| MTF plot (one wavelength)Against Zemax's Huygens MTF, not its FFT MTF, at 6.5 deg, 7 deg, 10 deg: the FFT MTF takes the pupil index as linear in the direction cosine, and Zemax's own rays at the image depart from that by 0.071, 0.073, 0.090 (more than 0.005; a plane fit of L and M on px, py, over half their range), while the Huygens MTF follows the rays' own directions. It is not exact either: it gives every ray of its pupil grid the same amplitude, so where the density of rays in direction cosine varies across the pupil it weights the pupil by that density, where conservation of energy gives its square root (evaluation #86, https://github.com/raycrafter-optical-design/evaluation/issues/86). The difference from the Huygens MTF there is 0.060, 0.065, 0.120; from the FFT MTF, which is not scored there, 0.039, 0.040, 0.085. Zemax's own FFT and Huygens MTFs differ from each other by 0.092, 0.094, 0.124 at 6.5 deg, 7 deg, 10 deg (largest of the two azimuths). Zemax's own FFT and Huygens MTFs differ by more than the fail limit (0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg, 10 deg, so matching Zemax is a band, not a line (zemax-spread). 0 deg: at 289 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.829, Zemax Huygens 0.748 (they differ by 0.081, 4.0 times the fail limit), RayCrafter 0.797: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.011 outside the band; 5 deg: at 278 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.823, Zemax Huygens 0.737 (they differ by 0.086, 4.3 times the fail limit), RayCrafter 0.790: inside the band, 0.033 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.016 outside the band; 6.5 deg: at 262 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.806, Zemax Huygens 0.715 (they differ by 0.092, 4.6 times the fail limit), RayCrafter 0.774: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.023 outside the band; 7 deg: at 257 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.795, Zemax Huygens 0.701 (they differ by 0.094, 4.7 times the fail limit), RayCrafter 0.764: inside the band, 0.031 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.027 outside the band; 10 deg: at 198 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.707, Zemax Huygens 0.584 (they differ by 0.124, 6.2 times the fail limit), RayCrafter 0.696: inside the band, 0.012 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.082 outside the band | 0.1202 | 0.005 / 0.02 | Fail |
All 11 rows, matches included
| Quantity | Largest difference from Zemax | Match / partial within | Result |
|---|---|---|---|
| Focal length and f-number | 5.55e−14 % | 0.0001 / 0.1 % | Match |
| Chief ray at the image, every fieldFields where both programs block the chief ray are left out | 3.5e−15 mm | 1e−06 / 0.001 mm | Match |
| Ray fan (tangential), every fieldFields where no ray gets through are left out | 7.05e−15 mm | 1e−06 / 0.001 mm | Match |
| Ray fan: pupil points with a ray in one program only, every fieldLight that one program lets through and the other stops: vignetting that differs. Zemax draws a tangential fan point only if the ray one step lower in the pupil also gets through, so its window really starts one to two steps below its first point and ends up to one step above its last; a point where the edge may be is undecided and not counted (raycrafter #258); the sagittal fan is not compared (no vignetted sagittal reference to show Zemax does the same) | 0 % | 0 / 1 % | Match |
| RMS wavefront against fieldEvery wavelength. Zemax gives one RMS wavefront number per field (its RMS Wavefront operand), so there is no Zemax spread to show for this row: it compares that one number with RayCrafter's | 0.01854 waves | 0.001 / 0.01 waves, or 1 % of Zemax's if larger, to fail | Fail |
| Strehl ratio, every fieldRayCrafter's Strehl ratio on the pixel grid of Zemax's Huygens PSF, as Zemax reads its own (its largest pixel); Zemax's prints three decimals. RayCrafter's PSF weights each ray by sqrt(J), J being how far its part of the pupil spreads over direction cosine, so that energy is conserved (raycrafter #236); Zemax's Huygens PSF gives every ray the same amplitude. With every ray at the same amplitude RayCrafter's Strehl ratio is 0.8461 at 6.5 deg (0.0031 from Zemax's 0.843, against 0.0117 as it is); 0.7995 at 7 deg (0.0065 from Zemax's 0.793, against 0.0179 as it is); 0.3705 at 10 deg (0.0425 from Zemax's 0.328, against 0.0761 as it is). The row scores RayCrafter as it is. Zemax's own Strehl numbers differ by more than the fail limit (0.02) at 10 deg. 0 deg: Zemax Huygens PSF 0.997, Zemax Wavefront Map 0.997 (they differ by 0.0002, within the fail limit of 0.02), RayCrafter 0.997: beside the band: 0.000 outside it, which is within the fail limit of 0.02; 5 deg: Zemax Huygens PSF 0.943, Zemax Wavefront Map 0.933 (they differ by 0.0095, within the fail limit of 0.02), RayCrafter 0.947: beside the band: 0.004 outside it, which is within the fail limit of 0.02; 6.5 deg: Zemax Huygens PSF 0.843, Zemax Wavefront Map 0.837 (they differ by 0.0058, within the fail limit of 0.02), RayCrafter 0.855: beside the band: 0.012 outside it, which is within the fail limit of 0.02; 7 deg: Zemax Huygens PSF 0.793, Zemax Wavefront Map 0.785 (they differ by 0.0085, within the fail limit of 0.02), RayCrafter 0.811: beside the band: 0.018 outside it, which is within the fail limit of 0.02; 10 deg: Zemax Huygens PSF 0.328, Zemax Wavefront Map 0.308 (they differ by 0.0201, more than the fail limit of 0.02), RayCrafter 0.404: outside the band by 0.076, more than the fail limit of 0.02 | 0.07613 | 0.005 / 0.02 | Fail |
| MTF plot (one wavelength)Against Zemax's Huygens MTF, not its FFT MTF, at 6.5 deg, 7 deg, 10 deg: the FFT MTF takes the pupil index as linear in the direction cosine, and Zemax's own rays at the image depart from that by 0.071, 0.073, 0.090 (more than 0.005; a plane fit of L and M on px, py, over half their range), while the Huygens MTF follows the rays' own directions. It is not exact either: it gives every ray of its pupil grid the same amplitude, so where the density of rays in direction cosine varies across the pupil it weights the pupil by that density, where conservation of energy gives its square root (evaluation #86, https://github.com/raycrafter-optical-design/evaluation/issues/86). The difference from the Huygens MTF there is 0.060, 0.065, 0.120; from the FFT MTF, which is not scored there, 0.039, 0.040, 0.085. Zemax's own FFT and Huygens MTFs differ from each other by 0.092, 0.094, 0.124 at 6.5 deg, 7 deg, 10 deg (largest of the two azimuths). Zemax's own FFT and Huygens MTFs differ by more than the fail limit (0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg, 10 deg, so matching Zemax is a band, not a line (zemax-spread). 0 deg: at 289 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.829, Zemax Huygens 0.748 (they differ by 0.081, 4.0 times the fail limit), RayCrafter 0.797: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.011 outside the band; 5 deg: at 278 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.823, Zemax Huygens 0.737 (they differ by 0.086, 4.3 times the fail limit), RayCrafter 0.790: inside the band, 0.033 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.016 outside the band; 6.5 deg: at 262 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.806, Zemax Huygens 0.715 (they differ by 0.092, 4.6 times the fail limit), RayCrafter 0.774: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.023 outside the band; 7 deg: at 257 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.795, Zemax Huygens 0.701 (they differ by 0.094, 4.7 times the fail limit), RayCrafter 0.764: inside the band, 0.031 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.027 outside the band; 10 deg: at 198 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.707, Zemax Huygens 0.584 (they differ by 0.124, 6.2 times the fail limit), RayCrafter 0.696: inside the band, 0.012 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.082 outside the band | 0.1202 | 0.005 / 0.02 | Fail |
| Distortion, f-tan and f-theta | 1.96e−08 percentage points | 0.005 / 0.05 percentage points | Match |
| Grid distortion, largest | 4.9e−07 percentage points | 0.005 / 0.05 percentage points | Match |
| Field curvatureRayCrafter takes the best focus of a whole fan, Zemax that of rays near the chief ray. Signs are opposite by convention | 1.71e−06 mm | 0.01 / 0.1 mm | Match |
| Field curvature, change from the axis | 1.71e−06 mm | 0.01 / 0.1 mm | Match |
MTF plot (one wavelength), fields where Zemax's two MTF methods weight the pupil differently: Not scored at 0 deg, 5 deg: Zemax's FFT and Huygens MTFs weight the pupil differently, so neither is a reference. The FFT MTF takes the pupil as evenly bright in direction cosine (a weight J^0, J being the area of direction-cosine space that a unit of the pupil goes to), the Huygens MTF gives every ray the same amplitude (J^-1), and conservation of energy gives J^-1/2, which RayCrafter now follows (raycrafter #236); a correct RayCrafter lies between the two. The rule: the two Zemax MTFs differ by more than 0.04 (twice the fail limit, so that a RayCrafter halfway between them is outside the limit of both) and the pupil's ray density, from Zemax's own rays, varies by more than 1.3 times (below that the weighting cannot account for a gap of 0.04), RayCrafter lies between the two curves or within the fail limit of them (outside that it is scored), and the field's Strehl ratio does not fail (a wavefront that differs is scored: an error that kept RayCrafter's MTF between two curves this far apart would show there). All three curves are in the MTF plots. At each field: 0 deg: Zemax's FFT and Huygens MTFs differ by 0.081; ray density varies 2.55 times; RayCrafter differs from the FFT MTF by 0.040 and from the Huygens MTF by 0.049, 0.011 outside the band between them; 5 deg: Zemax's FFT and Huygens MTFs differ by 0.086; ray density varies 2.57 times; RayCrafter differs from the FFT MTF by 0.040 and from the Huygens MTF by 0.053, 0.016 outside the band between them. Zemax's own FFT and Huygens MTFs differ by more than the fail limit (0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg, 10 deg, so matching Zemax is a band, not a line (zemax-spread). 0 deg: at 289 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.829, Zemax Huygens 0.748 (they differ by 0.081, 4.0 times the fail limit), RayCrafter 0.797: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.011 outside the band; 5 deg: at 278 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.823, Zemax Huygens 0.737 (they differ by 0.086, 4.3 times the fail limit), RayCrafter 0.790: inside the band, 0.033 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.016 outside the band; 6.5 deg: at 262 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.806, Zemax Huygens 0.715 (they differ by 0.092, 4.6 times the fail limit), RayCrafter 0.774: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.023 outside the band; 7 deg: at 257 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.795, Zemax Huygens 0.701 (they differ by 0.094, 4.7 times the fail limit), RayCrafter 0.764: inside the band, 0.031 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.027 outside the band; 10 deg: at 198 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.707, Zemax Huygens 0.584 (they differ by 0.124, 6.2 times the fail limit), RayCrafter 0.696: inside the band, 0.012 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.082 outside the band
What RayCrafter said when it imported the file
- Imported lens 1 has a 25.4 x 25.4 mm rectangular aperture; RayCrafter apertures are round, so the 25.4 mm circle inside it was used.
- 1 lens(es) are not in the catalogue and were named "Imported lens N".
- Each field angle was loaded at the primary wavelength, and each other wavelength as an on-axis field.
- Paraxial f=+12.5 mm has no aperture in the file, so Zemax blocks no rays there. RayCrafter blocks rays outside the size the file draws it (20 mm across); some of the file's rays reach 11.6 mm from the axis there, so RayCrafter blocks rays that Zemax lets through.
- Surface 16 ("enterance to flip cube") has a 38 mm round aperture in air; it was imported as an aperture 38 mm across, and none of the file's rays reach its edge.
- The file has Gaussian pupil apodization (factor 1): the beams are Gaussian, with a fill factor of 1.
- Adjusted: Paraxial f=+12.5 mm widened from 20 to 50 mm: the file gives the ideal objective no aperture, so Zemax blocks no rays there, while RayCrafter would block them outside the 20 mm the file draws it
Zemax against itself
Where Zemax's own two methods disagree by more than the fail limit, a single Zemax number is not what RayCrafter should match. Both Zemax numbers are shown here and in the plots, with RayCrafter's. No tolerance or verdict is changed by this section. RMS wavefront against field has one Zemax number only, so there is nothing to spread for it.
MTF: FFT against Huygens
Zemax computes the MTF two ways. The values are at the spatial frequency where its two curves differ most (the worse azimuth). RayCrafter is inside the band when it lies between the two Zemax values, beside it when it is outside by up to the fail limit (0.02), and outside it beyond that; the last column is the largest such distance over all frequencies. The band is shaded in the plots.
| Field | At (cycles/mm) | Zemax FFT MTF | Zemax Huygens MTF | Zemax's own difference | RayCrafter MTF | RayCrafter against the band there | Largest distance outside the band, all frequencies |
|---|---|---|---|---|---|---|---|
| 0 deg | 289 | 0.829 | 0.748 | 0.081 | 0.797 | inside the band, 0.032 from the nearer Zemax value | 0.011 |
| 5 deg | 278 | 0.823 | 0.737 | 0.086 | 0.790 | inside the band, 0.033 from the nearer Zemax value | 0.016 |
| 6.5 deg | 262 | 0.806 | 0.715 | 0.092 | 0.774 | inside the band, 0.032 from the nearer Zemax value | 0.023 |
| 7 deg | 257 | 0.795 | 0.701 | 0.094 | 0.764 | inside the band, 0.031 from the nearer Zemax value | 0.027 |
| 10 deg | 198 | 0.707 | 0.584 | 0.124 | 0.696 | inside the band, 0.012 from the nearer Zemax value | 0.082 |
Strehl ratio: Huygens PSF against Wavefront Map
Zemax's Huygens PSF prints one Strehl ratio, the Strehl ratio of its Wavefront Map is the peak of the diffraction image of that wavefront, and where Zemax ran an FFT PSF its peak is a third (a dash where it did not).
| Field | Zemax Huygens PSF | Zemax Wavefront Map | Zemax FFT PSF peak | Zemax's own spread | RayCrafter (Zemax's pixel grid) | RayCrafter against the band |
|---|---|---|---|---|---|---|
| 0 deg | 0.997 | 0.997 | – | 0.0002 | 0.997 | beside the band: 0.0004 outside it, which is within the fail limit of 0.02 |
| 5 deg | 0.943 | 0.933 | – | 0.0095 | 0.947 | beside the band: 0.0043 outside it, which is within the fail limit of 0.02 |
| 6.5 deg | 0.843 | 0.837 | – | 0.0058 | 0.855 | beside the band: 0.0117 outside it, which is within the fail limit of 0.02 |
| 7 deg | 0.793 | 0.785 | – | 0.0085 | 0.811 | beside the band: 0.0179 outside it, which is within the fail limit of 0.02 |
| 10 deg | 0.328 | 0.308 | – | 0.0201 | 0.404 | outside the band by 0.0761, more than the fail limit of 0.02 |


Optiland: the file's own fields


RayCrafter: its own plots
What RayCrafter's window and report draw, with Zemax's points over them (open markers), on the file's own fields.







The authors' plots: verdict by quantity
An older check, against the plots exported with the design from OpticStudio 2026 R1. The tables above, from our own Zemax run, replace it. Zemax numbers are read from the text block on each plot where it prints one; the rest are read off the plot pixels (digitised, marked in the Source column). Optiland numbers come from re-tracing the same ZMX with the local thin-lens patch (optiland_analysis/results.json), at 0.85 µm unless stated. RayCrafter numbers are calculated by RayCrafter itself (raycrafter_analysis/raycrafter_results.json). Status is computed from the tolerances in comparison.json; Δ is the largest difference from Zemax in the row, as a distance or as how far the ratio is from 1.
RayCrafter is given the file folded, as authored (raycrafter #159): it imports the fold mirror, and the footprint, RMS wavefront and Strehl numbers are those its unfolded copy gave, to 10−8. The same design exported again by RayCrafter and traced by Zemax is on its own page, where RayCrafter's MTF and Strehl ratio part from Zemax's at the largest angle.
How the file was adjusted for RayCrafter:
- Paraxial f=+12.5 mm widened from 20 to 50 mm: the file gives the ideal objective no aperture, so Zemax blocks no rays there, while RayCrafter would block them outside the 20 mm the file draws it
Optiland
RayCrafter
Not matching: partial and fail rows.
| Quantity | Zemax | Optiland | RayCrafter |
|---|---|---|---|
| RMS wavefront on axis, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png | 0.009 / 0.027 / 0.072 | 0.026 / 0.086 / 0.225Δ about 3× Partial | 0.009 / 0.027 / 0.070Δ 2.76% Match |
| Strehl on axis, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png | 1.00 / 0.98 / 0.82 | 0.97 / 0.94 / 0.65Δ 0.1759 Partial | 1.00 / 0.97 / 0.82Δ 0.0056 Match |
| RMS wavefront at 10°, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png | 0.181 / 0.145 / 0.087 | 43.834 / 39.195 / 32.988Δ 380× Fail | 0.145 / 0.111 / 0.052Δ 68% Partial |
| Strehl at 10°, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png | 0.282 / 0.447 / 0.751 | 0.002 / 0.001 / 0.001Δ 0.7494 Fail | 0.407 / 0.593 / 0.894Δ 0.146 Partial |
All 12 rows, matches included
| Quantity | Zemax | Optiland | RayCrafter |
|---|---|---|---|
| Back aperture, max |x|, all λ and fields (mm)Zemax: text block on FootprintDiagram2.png | 10.3417 | 10.3417Δ <0.0001 Match | 10.3417Δ <0.0001 Match |
| Back aperture, y min (mm)Zemax: text block on FootprintDiagram2.png | −11.5586 | −11.5586Δ <0.0001 Match | −11.5586Δ <0.0001 Match |
| Back aperture, y max (mm)Zemax: text block on FootprintDiagram2.png | 10.3130 | 10.3130Δ <0.0001 Match | 10.3130Δ <0.0001 Match |
| Image plane, 10° marginal-ray radius (mm)Zemax: text block on FootprintDiagram.png | 0.4736 | 0.4736Δ <0.0001 Match | 0.4736Δ <0.0001 Match |
| Image plane, max |x| of rays (mm)Zemax: text block on FootprintDiagram.png | 0.0021 | 0.0021Δ <0.0001 Match | 0.0021Δ <0.0001 Match |
| Image plane, field 5° position (mm)Zemax: marker pixels on FootprintDiagram.png (digitised, scale 0.0021 mm/px) | 0.2380 | 0.2378Δ 0.0002 Match | 0.2378Δ 0.0002 Match |
| Image plane, field 6.5° position (mm)Zemax: marker pixels on FootprintDiagram.png (digitised, scale 0.0021 mm/px) | 0.3100 | 0.3087Δ 0.0013 Match | 0.3087Δ 0.0013 Match |
| 3D layout: element order, fold, objective | see below | see belowΔ — Match | not compared |
| RMS wavefront on axis, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png | 0.009 / 0.027 / 0.072 | 0.026 / 0.086 / 0.225Δ about 3× Partial | 0.009 / 0.027 / 0.070Δ 2.76% Match |
| Strehl on axis, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png | 1.00 / 0.98 / 0.82 | 0.97 / 0.94 / 0.65Δ 0.1759 Partial | 1.00 / 0.97 / 0.82Δ 0.0056 Match |
| RMS wavefront at 10°, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png | 0.181 / 0.145 / 0.087 | 43.834 / 39.195 / 32.988Δ 380× Fail | 0.145 / 0.111 / 0.052Δ 68% Partial |
| Strehl at 10°, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png | 0.282 / 0.447 / 0.751 | 0.002 / 0.001 / 0.001Δ 0.7494 Fail | 0.407 / 0.593 / 0.894Δ 0.146 Partial |
Strehl ratio vs field
Optiland: fail off axisRayCrafter: closeSolid lines are Zemax (digitised from RMSvsField.png). Circles are Optiland's FFT PSF Strehl at 0° to 10° in 1° steps. Dotted lines with squares are RayCrafter. Zemax stays above the 0.8 diffraction limit out to about 6.0° at 0.85 µm, 7.3° at 0.94 µm and 9.4° at 1.10 µm. Optiland has collapsed to 0.02 by 1°. RayCrafter follows Zemax to within 0.14 at every angle and wavelength, reading high at large angles.
Even on axis Zemax and Optiland disagree. At 1.10 µm Zemax gives 0.82 and Optiland 0.65. At 0.85 and 0.94 µm Optiland is 0.03 low. RayCrafter is within 0.01 of Zemax on axis.

RMS wavefront error vs field
Optiland: fail off axisRayCrafter: closeLog scale, because Optiland differs from the others by two to three orders of magnitude. Zemax stays between 0.01 and 0.18 waves. Optiland (dashed) rises to 33 to 44 waves, the ideal-lens artefact documented as issue 3. RayCrafter (dotted, squares), which corrects the ideal lens's optical path in its own wavefront, stays within 0.04 waves of this digitised plot, reading low at large angles; against our own Zemax run it is 0.02 waves apart, a Fail since it took up the file's Gaussian apodization (raycrafter #140). The cause of what remains is not known.
Zemax is self-consistent. Its Strehl and wavefront plots agree through the Maréchal relation: 0.18 waves gives exp(−(2π·0.18)²) = 0.28, the Zemax Strehl at 10° and 0.85 µm. So the Zemax plots are a usable target for a fix.
To check after a fix: the 1.10 µm Zemax curve dips to 0.05 waves near 6.5° and then rises, while Optiland's geometric spot for 1.10 µm is the largest of the three at every angle. Only a valid wavefront calculation will show whether those fit together.

Back-aperture footprint
MatchZemax prints the extreme ray coordinates for all wavelengths and the five fields. Optiland's numbers, from the same 60-ring hexapolar trace, reproduce all three to the fourth decimal, and so do RayCrafter's, from the outline of each beam on that surface. The beam overfills the 20 mm aperture in both, and the walk is toward −y in both.


Footprint in the focal plane
MatchZemax reports a maximum radius of 0.4736 mm and a ray x spread of ±0.0021 mm at 0.85 µm. Optiland's 10° marginal ray lands at 0.47362 mm and its x spread is ±0.00208 mm; RayCrafter gives the same to the fourth decimal. The 10° chief ray is 0.4729 mm, so the chief-ray value in the detail section agrees with Zemax once marginal rays are included.


3D layout
MatchSame element order in both: galvo, scan lens doublet and singlet, PBS cube, tube lens doublets, 45° fold mirror, then the objective and focus. The fold direction in the two drawings differs only because of view orientation.


Optiland detail: summary
Seven of the nine requirements produced usable output. Two needed a workaround for an optiland bug. Strehl ratio vs field and RMS wavefront vs field are blocked: optiland returns numbers for them, but the off-axis values are wrong (see Strehl). STEP export is not available in optiland.
| Requirement | Status | Notes |
|---|---|---|
| Back-aperture footprint & conjugation, all λ | Works, patched | Needed a local fix to optiland's ideal-lens model after the fold mirror. |
| Field of view, footprint in focal plane | Works, patched | Same fix. Without it the image height is 2.7 mm instead of 0.47 mm. |
| RMS spot vs field vs diffraction limit, all λ | Works | Geometric RMS spot radius against the Airy radius. |
| RMS wavefront vs field | Blocked | Valid on axis only. Off-axis values are an artefact. |
| Strehl ratio vs field, all λ | Blocked | Valid on axis only. Same cause as RMS wavefront. |
| Field curvature & distortion | Works, unfolded | Run on an unfolded copy of the system. The folded file gives wrong reference heights. |
| Grid distortion | Works, unfolded | Crashes on the folded file; runs on the unfolded copy. |
| 3D viewer of the model | Works | optiland's viewer is a desktop VTK window; exported to glTF for this page. |
| STEP export | Not available | optiland has no CAD export. Not attempted (listed as "eventually"). |
| Lens and spacing details | Works | Surface comments are dropped on import; re-attached from the .ZMX. |
Interactive 3D model
Requirement: 3D viewer of the model
Loading 3D model…
This is the scene from optiland's own VTK 3D viewer: all fields, all wavelengths, ring of 12 rays. It was rendered offscreen and exported as glTF; lens meshes were reduced to 3% of their vertices to keep the file at a few MB. Drag to rotate, scroll to zoom, right-drag to pan.
Back-aperture footprint and conjugation
Works, patchedRequirement: footprint of the back aperture, check conjugation, all wavelengths
Rays from a filled 4.5 mm pupil at the galvo, traced to the objective's back aperture (Zemax surface 21) for scan angles from −10° to +10°. If the galvo were imaged exactly onto the back aperture, every footprint would be centred and the beam would not walk.

DIAM 10). Neither Zemax nor optiland clips the beam here, because no aperture is set on that surface.
- The beam is slightly larger than the back aperture. On axis the footprint is 20.6 mm across (4.5 mm × 250/54), against a 20 mm aperture.
- The galvo is not conjugate to the back aperture. At 10° the footprint moves 1.14 mm at 0.85 µm, 1.04 mm at 0.94 µm and 0.90 mm at 1.10 µm. The walk grows faster than linearly: 0.30 mm at 5°, 1.14 mm at 10° (0.85 µm).
- The chief rays cross the axis 11 mm before the back aperture at small angles and 30 mm before it at 10° (0.85 µm). So the galvo image lies before the objective, and its position shifts with scan angle and wavelength.
Field of view at the focal plane
Works, patchedRequirement: field of view size, footprint in the focal plane
The Zemax file defines fields along y only. The system is rotationally symmetric up to the fold mirror, which is flat, so here chief rays are traced on an 11 × 11 grid of x and y scan angles over ±10° to show the full 2D scanned field.

- The field is 946 µm × 946 µm. The edge midpoints sit at ±472.9 µm and the corners at (±464.7, ±464.7) µm, so the corners are pulled in by 1.7%. That is the barrel distortion shown under grid distortion.
- Cross-check: the 10° chief ray lands at 0.4729 mm. The Zemax file's image semi-diameter is 0.4751 mm, which also includes the marginal rays.
RMS vs field, against the diffraction limit
Spot worksWavefront blockedRequirement: RMS vs field plot, all wavelengths, relative to the diffraction limit

| λ (µm) | Airy radius (µm) | RMS spot at 0° | RMS spot at 10° | Below Airy up to |
|---|---|---|---|---|
| 0.85 | 0.82 | 0.18 µm | 1.52 µm | 6.8° |
| 0.94 | 0.90 | 0.15 µm | 1.35 µm | 8.0° |
| 1.10 | 1.06 | 0.59 µm | 2.00 µm | 5.4° |
On axis optiland gives 0.026 waves at 0.85 µm, which is plausible. Off axis the value rises almost linearly, to 44 waves at 10°. That can't be real: a 44-wave wavefront could not produce the 1.5 µm spots above. The cause is in optiland's ideal-lens model, explained under Strehl.
Show optiland's RMS wavefront output (invalid off axis, do not use)

Strehl ratio vs field
BlockedRequirement: Strehl ratio vs field, all wavelengths, relative to the diffraction limit
The objective in this file is a Zemax paraxial surface: an ideal lens. Zemax treats it as perfect at every field angle. optiland's equivalent thin-lens model adds the optical path of a perfect lens for an on-axis point only. Off axis, the ideal lens itself introduces wavefront error, and at NA 0.64 that error is large.
A single ideal lens tested on its own in stock optiland shows this: 1.3 waves RMS and Strehl 0.16 at 5°, where both should be perfect. With the stop at the lens's front focal plane, which is close to this system's layout, the wavefront calculation fails with No valid ray samples found.
Every quantity built on the wavefront inherits the error: RMS wavefront, Strehl, PSF and MTF. Ray-based results (spots, footprints, distortion, field curvature) are not affected, because the thin lens bends the rays correctly.
What is usable now: on axis, FFT-PSF Strehl is 0.97 at 0.85 µm, 0.94 at 0.94 µm and 0.65 at 1.10 µm. These agree with the on-axis spot sizes. Off axis there are no valid numbers yet.
Ways to unblock:
- Fix the thin-lens optical path in optiland (issue 3 in
upstream/optiland_issues_found.md). - Replace the paraxial objective with a real lens prescription.
- Evaluate the wavefront at the back aperture instead of at the focus.
Show optiland's Strehl output (invalid off axis, do not use)

Field curvature and distortion
Works, unfoldedRequirement: field curvature and distortions
optiland's paraxial engine gets the reference image height wrong when the system contains the fold mirror: 1.29 mm instead of 0.48 mm at 10°. Distortion depends on that reference. These plots therefore use an unfolded copy of the file, with the flat mirror replaced by straight-through propagation, which is optically identical. Real-ray image heights and back-aperture positions agree between the folded and unfolded models to 10−14 mm.


Show f-tan(θ) distortion

Grid distortion
Works, unfoldedRequirement: grid distortion


optiland scales this grid so the corners are at the 10° maximum field. The grid therefore spans ±0.34 mm, not the ±0.47 mm of the full ±10° x/y scan shown under field of view. On the folded file this analysis crashes with zero-size array to reduction operation maximum.
Spot diagrams
WorksSupporting plot: spots at the five Zemax fields, all wavelengths, all centred on the 0.85 µm (primary) chief ray. The dashed circle is the Airy disk at the primary wavelength. Axes are in mm (0.002 mm = 2 µm).

STEP export
Not availableoptiland 0.6.3 has no STEP or other CAD export. The closest it offers is the 3D mesh above, which can be exported from VTK as glTF, STL or OBJ: triangulated surfaces with no exact geometry or lens edges. This was listed as "eventually", so nothing more was attempted.
Lens data
WorksRequirement: details of the lenses and spacings
Prescription as optiland holds it, with Zemax surface numbers and comments added back. optiland drops comments on import and absorbs the two coordinate breaks (Zemax surfaces 17 and 19) into neighbouring surfaces. Negative thicknesses follow the Zemax convention after the mirror. Refractive indices are optiland's, from its own glass catalogue.
| Zemax | Comment | Type | Radius (mm) | Thickness (mm) | Material | n 0.94 | n 0.85 | n 1.10 |
|---|---|---|---|---|---|---|---|---|
| 0 | Plane | ∞ | ∞ | Air | ||||
| 1 | X-galvo | Plane (stop) | ∞ | 0 | Air | |||
| 2 | Plane | ∞ | 45.5 | Air | ||||
| 3 | Standard | 291.07 | 5 | N-SF6HT | 1.77752 | 1.78155 | 1.77226 | |
| 4 | Standard | 93.11 | 12 | N-LAK22 | 1.63956 | 1.64146 | 1.63685 | |
| 5 | AC508-075-B | Standard | -51.8 | 1 | Air | |||
| 6 | LE1015-B | Standard | 65.16 | 6.18 | N-BK7 | 1.50837 | 1.50984 | 1.50617 |
| 7 | Standard | 171.6 | 68 | Air | ||||
| 8 | PBS255 | Plane | ∞ | 25.4 | N-SF1 | 1.69574 | 1.69897 | 1.69145 |
| 9 | Plane | ∞ | 206.5 | Air | ||||
| 10 | Standard | -2471.073 | 6 | N-SF5 | 1.65382 | 1.65669 | 1.64994 | |
| 11 | Standard | 192.835 | 6 | N-SK2 | 1.59679 | 1.59851 | 1.59434 | |
| 12 | ACT508-500-B | Standard | -233.813 | 2 | Air | |||
| 13 | ACT508-500-B | Standard | 233.813 | 6 | N-SK2 | 1.59679 | 1.59851 | 1.59434 |
| 14 | Standard | -192.835 | 6 | N-SF5 | 1.65382 | 1.65669 | 1.64994 | |
| 15 | Standard | 2471.073 | 64.5 | Air | ||||
| 16 | enterance to flip cube | Plane | ∞ | 32.6 | Air | |||
| 18 | Mirror | ∞ | -24.54 | MIRROR | ||||
| 20 | underside of filp cube | Plane | ∞ | -130.5 | Air | |||
| 21 | Back aperture | Paraxial f=12.5 | ∞ | -12.5 | Air | |||
| 22 | Plane | ∞ | — | Air |
System: entrance pupil 4.5 mm at the galvo (stop). Paraxial EFL 2.73 mm, working F/0.61. Fold mirror tilted 45° about x. Aperture shapes from the file (square aperture on the PBS cube, rectangular on the mirror) are not used in these results; no rays were clipped.
optiland issues found
Full details, repro code and suggested fixes are in upstream/optiland_issues_found.md.
- 1. Ideal lens reverses rays after a mirror. optiland's thin-lens model forces rays to travel in +z. After the fold mirror they travel in −z, so they were sent backwards: 10° landed at 2.7 mm instead of 0.47 mm. Patched locally Upstream: PR #1109 (fixed on main for real rays), #1210 (paraxial path).
- 2. Paraxial engine is wrong with a fold mirror. The exit pupil and the reference image height are wrong in the folded file, which breaks distortion and grid distortion. Worked around by unfolding Upstream: #1210.
- 3. Ideal lens is not perfect off axis. Its optical-path term is correct only for an on-axis point. This blocks RMS wavefront, Strehl, PSF and MTF for any design with a paraxial objective, and telecentric layouts fail outright. RayCrafter works around it for its own wavefront, Strehl and PSF, not for the MTF. Open upstream Upstream: #1248, #1110 (exit pupil at infinity; closed after 0.6.3).
- 4. Surface comments dropped on import. Cosmetic; re-attached from the .ZMX for this page. Worked around Upstream: #1249 (filed as a feature request).
How Zemax was run
By make_zemax_reference.py, the same way for every design, on
2026-12-04 13:29.
What is asked for, and which tool each result tests, is in
zemax_analyses.md; every file is in
Zemax_reference_output.
| System | What it is | Tests |
|---|---|---|
| The file's own fields | The file untouched, at its own fields | Optiland, RayCrafter |
Reproduce
The scripts are in evaluation_tools/from_zemax/ and evaluation_tools/pages/. optiland is installed with uv; the environment (pinned in uv.lock) lives outside Dropbox, here at ~/uv_venvs/optiland_eval_mac, and is selected with --project.
export UV_PROJECT_ENVIRONMENT=~/uv_venvs/evaluation_mac uv run python -m evaluation_tools.from_zemax.analyze_smod45 designs/from_zemax/SMOD4.5 # about 2 minutes uv run python -m evaluation_tools.from_zemax.analyze_raycrafter designs/from_zemax/SMOD4.5 # a few seconds uv run python -m evaluation_tools.build_summary # regenerates all HTML
load_system.py holds the thin-lens patch and the unfolding step. analyze_smod45.py runs every Optiland analysis, analyze_raycrafter.py asks RayCrafter (pinned in pyproject.toml) for its numbers, and build_summary.py writes this page.