Skip to content

trace_raw question #79

Answered by mjhoptics
dibyendumajumdar asked this question in Q&A
Feb 20, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Yes, this is by "design". Inside of the main loop in trace_raw, we start with the ray exiting the previous surface/interface. The ray data (intersection point and direction cosines) are in the previous surface's coordinate system. This gets transformed into the coordinate system of the next surface by applying tfrm_from_before. Now the ray data is in the coordinate system of the next surface, the one we'll try to intersect with. If you look at the coordinates of the ray point after transformation, you'll find it's z coord is -1e10.

If you have a curved object surface (e.g. typically how a dome projection system would be modeled), the z coord at the object for off-axis object points will b…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dibyendumajumdar
Comment options

@mjhoptics
Comment options

@dibyendumajumdar
Comment options

Answer selected by dibyendumajumdar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants