surfaces.converters
Converters
This module contains classes that convert between different surface types.
Kramer Harrison, 2024
Functions
|
Converts all paraxial surfaces in a lens into thick lenses |
Classes
|
Converts a ParaxialSurface into an equivalent thick lens composed of two real surfaces. |
- class ParaxialToThickLensConverter(paraxial_surface: Surface, optic: Optic, material: str | float | BaseMaterial = 'N-BK7', center_thickness: float = 3.0)[source]
Converts a ParaxialSurface into an equivalent thick lens composed of two real surfaces.
- Parameters:
paraxial_surface – The ParaxialSurface to convert.
optic – The parent Optic instance containing the paraxial surface.
material – The lens material. Can be: - A string (e.g., “N-BK7”, resolved via Material lookup). - A float (refractive index, creates an IdealMaterial). - A BaseMaterial instance.
center_thickness – The desired center thickness of the thick lens.