Skip to main content
Solved

How does ZOS-API Batch Tracing Large Numbers of Polarization Rays obtain results in the global coordinate system?

  • December 22, 2023
  • 3 replies
  • 123 views

ZOS-API Batch mentioned in bulk polarization ray tracing,

Note that when reading back the ray trace data that the coordinates, direction cosines and electric field (exr, exi, eyr, eyi, ezr, ezi) are returned in the local coordinate system. To convert to global coordinates, you will need to use the GetGlobalMatrix() method of the ILensDataEditor interface to retrieve a matrix for conversion.

In other words, the results obtained by polarization ray tracing are in the local coordinate system. So what should I do if I want to obtain the electric field vector in the global coordinate system?

Best answer by Mark.Nicholson

?

Doesn’t the text you quoted explicitly answer your question?

View original
Did this topic help you find an answer to your question?

3 replies

Mark.Nicholson
Luminary
Forum|alt.badge.img+3

?

Doesn’t the text you quoted explicitly answer your question?


  • Author
  • Visible
  • 17 replies
  • December 26, 2023

@Mark.Nicholson Sorry, I didn't understand the usage of GetGlobalMatrix() method accurately. That is to say, what should I do after obtaining the global coordinate transformation matrix? Since there are no examples, I'm not sure how to do it correctly.


  • Author
  • Visible
  • 17 replies
  • December 30, 2023

@Mark.Nicholson I think I understand how to solve the problem. Just multiply it directly after obtaining the coordinate information.


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