tolerancing.types.surface#
Surface Tolerance Types Module
This module contains the tolerance types that act on a single surface: radius, power in fringes, conic constant, thickness, and surface decenter and tilt.
Kramer Harrison, 2026
Classes
|
Deviation of the conic constant. |
|
Power deviation in fringes, applied as a change of radius. |
|
Deviation of the radius of curvature, in lens units. |
|
Decenter of one surface along |
|
Tilt of one surface about its own vertex, around |
|
Deviation of the thickness after a surface, in lens units. |
|
Tolerance that adds a scaled deviation to an optimization variable. |
- class ConicTolerance(optic: Optic, surface_number: int, **kwargs)[source]#
Deviation of the conic constant.
- phase: Phase = 0#
- class FringesTolerance(optic: Optic, surface_number: int, test_wavelength: float = 0.6328, semi_aperture: float | None = None)[source]#
Power deviation in fringes, applied as a change of radius.
One fringe is half a test wavelength of sag difference at the edge of the clear aperture. A positive deviation increases the magnitude of the sag (a more strongly curved surface); on a flat surface it gives a positive radius. The conversion is exact for conic surfaces:
c = 2 s / (h**2 + (1 + k) s**2)for sagsat heighth.- Parameters:
optic – The optic the tolerance applies to.
surface_number – The surface index.
test_wavelength – The test wavelength in µm. Defaults to 0.6328.
semi_aperture – The clear semi-aperture in lens units. Defaults to the surface’s semi-aperture, or the paraxial marginal plus chief ray heights when none is set.
- phase: Phase = 0#
- class RadiusTolerance(optic: Optic, surface_number: int)[source]#
Deviation of the radius of curvature, in lens units.
- Raises:
ValueError – If the surface is flat. Use
"fringes"instead.
- phase: Phase = 0#
- class SurfaceDecenterTolerance(optic: Optic, surface_number: int, axis: str)[source]#
Decenter of one surface along
axis(“x” or “y”), in lens units.- phase: Phase = 3#
- class SurfaceTiltTolerance(optic: Optic, surface_number: int, axis: str)[source]#
Tilt of one surface about its own vertex, around
axis(“x” or “y”), in degrees.- phase: Phase = 3#
- class ThicknessTolerance(optic: Optic, surface_number: int, adjust: int | None = None)[source]#
Deviation of the thickness after a surface, in lens units.
- Parameters:
optic – The optic the tolerance applies to.
surface_number – The surface whose following thickness changes.
adjust – Optional surface whose following thickness absorbs the opposite deviation, so that surfaces after it do not move.
- apply(delta: float) None[source]#
Change the thickness, and the adjust thickness by the opposite amount.
- phase: Phase = 0#
- class VariableTolerance(optic: Optic, surface_number: int, **kwargs)[source]#
Tolerance that adds a scaled deviation to an optimization variable.
- Parameters:
optic – The optic the tolerance applies to.
surface_number – The surface index.
**kwargs – Extra arguments for the variable, such as
axis.
- Variables:
- phase: Phase = 0#