Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qbfs polynomial aspheric surface #52

Open
LaurenPao opened this issue Jun 25, 2021 · 2 comments
Open

Qbfs polynomial aspheric surface #52

LaurenPao opened this issue Jun 25, 2021 · 2 comments
Assignees

Comments

@LaurenPao
Copy link

Hello Mike,

Thanks for the great package!
The aspheric lens, ASL5040-UV from ThorLabs, is currently being treated as a spherical surface as opposed to a Qbfs polynomial surface. Perhaps, if possible, a future enhancement could include support for this type of surface?

Best,
Lauren

@LaurenPao LaurenPao changed the title Qbfs polynomial Aspheric Surface Qbfs polynomial aspheric surface Jun 25, 2021
@mjhoptics mjhoptics self-assigned this Jun 25, 2021
@brandondube
Copy link

FYI, you can "borrow" the Qbfs code from prysm, which is highly optimized (and the other Q type polynomials). Since prysm is MIT, you could just vendor that into ray-optics as long as a license note is brought with it.

https://github.com/brandondube/prysm/blob/master/prysm/polynomials/qpoly.py#L39

A lru cache on the g,h,f would be prudent, but I never decided if I wanted to do that or hard-code the cache in some global variables, which would be a bit faster but "bad code."

@mjhoptics
Copy link
Owner

mjhoptics commented Aug 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants