Skip to main content

How to create User Defined Aperture correctly?


Haosheng.Hu
Zemax Staff
Forum|alt.badge.img+1
In some case, our modeling requirements may not be met with normal circular or rectangular apertures, we can use User Defined Aperture instead. For more information, you can navigate to "The Setup Tab > Editors Group (Setup Tab) > Lens Data Editor > Surface Properties > Aperture (surface properties) > User Defined Apertures and Obscurations" section of Help Manual.

How about if we want to create a aperture shaped by two linked circle for example?



If we created above aperture by using two overlapped circle by using CIR commands in UDA file, the overlapped region will became obstruction rather than aperture:



Instead, we have to use ARC or LIN commend to create every single curve separately in UDA file. 
Did this topic help you find an answer to your question?

2 replies

You could calculate the interception points of the circles and the angle of the resulting arcs (maybe with a macro) and then define the UDA i.e. like this:



LIN 0  0.866

ARC 0.5 0 240 64

LIN  0 -0.866

ARC -0.5 0 240 64

Thomas Magnac
Zemax Staff
Forum|alt.badge.img+2
You could definitely do that with a macro to write the .UDA, I just corrected the sign of the angle in the ARC function:


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings