trace_raw question #79
-
Hi @mjhoptics I have been puzzled by something - in the input to Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, this is by "design". Inside of the main loop in 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 be non-zero. This is what the intersection calculation before the main loop is meant to handle. "infinite" object distances have been modeled by using extremely large distances since before there was an IEEE standard for floating point arithmetic, and the associated |
Beta Was this translation helpful? Give feedback.
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 applyingtfrm_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…