FieldSpec question #74
-
ray-optics/src/rayoptics/raytr/opticalspec.py Line 405 in e55a4c1 If I set a field spec as object angle, I notice here that only y coordinate is set. Is there a way to make the ray start such that it makes that angle on both x and y axes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, but you have to do it field by field; there isn't a single function call to do it. My general approach with ray-optics has been to implement general purpose algorithms in the "back-end" but only implement interface functions to handle the most common systems, i.e. rotationally symmetric systems. So the |
Beta Was this translation helpful? Give feedback.
Yes, but you have to do it field by field; there isn't a single function call to do it.
My general approach with ray-optics has been to implement general purpose algorithms in the "back-end" but only implement interface functions to handle the most common systems, i.e. rotationally symmetric systems. So the
set_from_list()
method ofFieldSpec
is really only accepting y or radial field heights for convenience in the most common situations. If you have an anamorphic or bilaterally symmetric system, then the user needs to addField
objects directly toFieldSpec
with the appropriatex, y
coordinates set. The documentation doesn't make this clear (which is an understatement) so thank you for a…