DLL (User-Defined Object): Non-Sequential Polygon grating

  • 5 August 2021
  • 0 replies
  • 260 views

Userlevel 6
Badge +2

 

This is a User Defined Object DLL, which allows users defining a polygon plate with 8 x and y points data and thickness. The polygon is linked in order of the points defined in parameters. If a point is set with (0,0), it’s ignored. To consider a point at (0,0), users need to use a smaller but non-zero number, like 1e-8 to replace the 0. All the value of x, y will be multiplied by the parameter “Scale”. If “Scale” is zero, then it’s converted to 1.0 internally. If the parameter “Z Center mode” is 0, then the local origin (0,0,0) is located on Face 1. If “Z Center mode” = 1, the local origin is shifted in z direction by -Thickness/2 so it’s centered between Face 1 and Face 2. If “Z Center mode” = 2, the shift is -Thickness so the local coordinate origin is at face 2. If “Diffract back Face” is non-zero, the grating is on Face 2 instead of Face 1.

Language: Cpp

  

Click here to download

Date Version OpticStudio Version Comment
2020/12/04 1.0 20.3.2 Creation
2021/01/13 1.1 20.3.2 Support “Scale” and “Center mode”
2021/01/28 1.2 21.1 Increase number of points to 30
2021/01/28 1.3 21.1 Center mode can be “2” now. Support “diffractive back face”
2021/04/24 1.4 21.2 Support Scale X and Scale Y

0 replies

Be the first to reply!

Reply