Ideal Lens Theory
The Ideal Lens feature can be used to treat a flat surface (in 3D) or an edge (in 2D) as if it were a lens, allowing it to focus or defocus rays.
Optical Power
The optical power K (SI unit: 1/m) of a lens is
where feff is the effective focal length (SI unit: m). For a thin lens, we have
where
with n1 and n2 being the refractive index before and after the lens respectively, and where n is the refractive index of the lens. The radii of curvature of the first and second lens surfaces is R1 and R2 (SI unit: m) respectively.
For a lens with thickness Tc (SI unit: m), the optical power is instead
where
Refracted Ray Direction
For each point r (SI unit: m) on the lens surface, define an orthonormal coordinate system with unit vectors er, et, and ns (the surface normal), where
where the subscripts r and t refer to the radial and tangential directions respectively. The distance δr is defined with respect to a reference point on the lens surface as δr = r - rref.
The incoming ray direction can be split into the radial and tangential components as follows:
 ,
where ni is the incident ray direction. The ideal lens will only affect the radial component of the ray directions; that is
and
and therefore the transmitted ray direction is