The surface can be placed at other locations, including the z position of the lens, but a Boolean object must be constructed in order to create a window for the sampling ray to intersect the desired surface. The simplest way to do this is by adding a rectangle object with X and Y Half Widths of 7.5mm, and located +50um in z from your front surface (this ensures that manufacturing rules are adhered to). The entire 15x15mm area sampled by the macro needs to be fully specified so, for example, a radial optic must also be partnered with a square dummy surface in order for the sampling ray to intersect a surface in the corners of the sampling region.
The LightForge_GridXYZ macro works by creating a source ray, which is then moved in a raster scan pattern over a defined xy range while measuring the z-intercept of the first surface intersected in the ZEMAX system.
ZEMAX to GridXYZ Macro Operation_March 2016.pdf. The method used by the LightForge_GridXYZ ZEMAX macro to generate a LightForge compatible GridXYZ file from an optical design in ZEMAX is described below. This macro is only suitable for operation in the Non-Sequential mode of ZEMAX.ĭownload the Zemax macro here: LightForge_GridXYZ.zipĭownload Zemax Macro Data Sheet here. Slow Axis Collimators with Smile Correction.