GNiendorf / tracepy

Ray Tracing and Optical Design in Python
https://tracepy.readthedocs.io
MIT License
61 stars 14 forks source link

The model from your code if only can perform tracing of paraxial rays? #23

Open xiehuanyi opened 1 year ago

lindeMAX commented 11 months ago

If i got it right, it should work like this:

ray_group = tp.ray_plane(geo, [0, 1, 0], 0.1, d=[0,m.sqrt(0.5),m.sqrt(0.5)], nrays=100)

But it doesn't and for some reason and also for some reason the length of the direction vector has to match exactly 1