mjhoptics / ray-optics

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

addsurface #59

Closed USTCNing closed 2 years ago

USTCNing commented 2 years ago

I wat to konw how to use addsurface(class) to creat ray chase。if there is a phase data,how can I get optical chase?

mjhoptics commented 2 years ago

Hello, I encourage you to look at the Triplet example in the documentation. This shows how to enter a Cooke triplet lens using add_surface, what usage parameters are needed for input and some simple ray tracing analyses, including wavefront (phase) aberration plots. You can also look at the ray-optics-notebooks repo for examples of how to use ray-optics in the jupyter notebook environment. There is a subdirectory of Photo-Patent lenses contributed by @dibyendumajumdar that are extensive examples of the use of add_surface. Hope this helps. Mike Hayford