mjhoptics / ray-optics

geometric ray tracing for optical systems
BSD 3-Clause "New" or "Revised" License
263 stars 54 forks source link

Usage of EvenPolynomial Class #56

Closed pribossek closed 3 years ago

pribossek commented 3 years ago

Dear Michael,

thank you very much for your efforts writing this library. So far I am tried to use it for simple spherical lens systems in sequential mode and was impressed by the library capabilities. I am still finding my way around the lib though. I would like to add some aspheric coefficents to some of the surfaces. May I ask how to define them? add_surface method does not seem to have this options, I noticed the EvenPolynomial Class but unfortunately did not find much information how to use it. Is there a way to import the sag in discrete form numerically, does rayoptics provide methods to perform EvenPolynomial fits?

Regards, Jaka