brandondube / prysm

physical optics: integrated modeling, phase retrieval, segmented systems, polynomials and fitting, sequential raytracing...
https://prysm.readthedocs.io/en/stable/
MIT License
267 stars 46 forks source link

Block/Parallel raytrace #72

Closed brandondube closed 2 years ago

brandondube commented 2 years ago

The ray-trace function and its building blocks need to be aware of multiple rays, when P and S are not shape (3,) or (1,3) but shape (N,3) or maybe (M,N,3). The matrix products and such will do the block computations naturally, but ray-surface intersection is iterative and will need some tricks.

brandondube commented 2 years ago

done except for refraction, which needs the non-iterative implementation to be complete