Skip to main content
Question

NSQ lens edge thickness

  • May 4, 2025
  • 1 reply
  • 52 views

  • Monochrome
  • 1 reply

Is there an operand for lens edge thickness in non seq mode? (for standard lens object)

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2

@Zur 

 

I don’t think that there is, but I haven’t thoroughly checked.

I can suggest the following workaround in the meantime.

  1. Add a Source Ray that travels at the edge of the lens (inside the lens, within the Glue Distance)
  2. Use NSRA to get the XYZ coordinates of the ray when it enters and exits the lens
  3. Compute the norm of the difference between those two coordinates to get the edge thickness

I’ve done an example below:

The edge thickness is in operand 19 (it is the norm of the difference). Notice how the Source Ray uses a Ref Object 2 (the lens of interest), this means even if the lens rotates, the calculation still holds. Notice also that you do not need a detector for that. EDIT: the Source Ray Y Position is 0.999, if you set it to 1.0 the ray travels outside the lens and it doesn’t have multiple segments, you can be as close to the edge as the Setup..System Explorer..Non-Sequential..Glue Distance In Lens Unit).

I hope this can be of some help (I’m attaching my file for your reference).

Take care,

 

David


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