-
I am currently trying to model the lens in 3D in my optical model system by tracing the rays and using the interception points(the coordinate when a ray enter/exits a surface/interface) to create a mesh to plot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @fu351,
There's probably a more numpy-efficient way of doing this, but this conveys the idea. |
Beta Was this translation helpful? Give feedback.
Hello @fu351,
Yes, I think you can do this in ray-optics without invoking ray-tracing.
The Surface class has an instance of a profile as an attribute. The sag() method on the profile can be used to give the z coordinate of a point x, y on the surface.