tolerancing.types.irregularity#

Irregularity Tolerance Type Module

This module contains the surface irregularity tolerance, the B and C terms of the ISO 10110-5 form tolerance 3/A(B/C). The power term A is the "fringes" tolerance type.

The irregularity is a Zernike sag error added to the nominal surface with a SagErrorGeometry. One fringe is half a test wavelength of sag, and the peak-to-valley sag of the error over the clear aperture equals the deviation in fringes times half the test wavelength. The Zernike polynomials (Fringe order, no normalization constant) are normalized to the clear semi-aperture:

  • kind="B" (irregularity): astigmatism, a rho^2 cos(2 (phi - angle)) with a = s / 2, where s is the peak-to-valley sag. Astigmatism is the lowest-order irregularity, has no power and is the common worst case. OpticStudio’s TIRR operand instead models the irregularity as half spherical aberration and half astigmatism.

  • kind="C" (rotationally symmetric irregularity): primary spherical aberration with power removed and no vertex offset, c (6 rho^4 - 6 rho^2) with c = s / 1.5: Fringe Z9 with its piston removed.

Kramer Harrison, 2026

Classes

IrregularityTolerance(optic, surface_number)

Surface irregularity in fringes, as a Zernike sag error.

class IrregularityTolerance(optic: Optic, surface_number: int, test_wavelength: float = 0.6328, semi_aperture: float | None = None, kind: str = 'B', angle: float = 0.0)[source]#

Surface irregularity in fringes, as a Zernike sag error.

Applying a deviation installs a SagErrorGeometry around the current geometry of the surface, which is not changed; resetting restores that geometry object.

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, which is also the normalization radius. Defaults to the surface’s semi-aperture, or the paraxial marginal plus chief ray heights when none is set.

  • kind – "B" for irregularity (astigmatism, default) or "C" for rotationally symmetric irregularity (spherical aberration), as in ISO 10110-5 3/A(B/C).

  • angle – Orientation of the astigmatism for kind "B", in degrees. Defaults to 0.

apply(delta: float) → None[source]#

Install the sag error of a deviation of delta fringes.

coefficients(fringes: float) → list[float][source]#

Return the Fringe Zernike coefficients, from Z1, of a deviation.

Parameters:

fringes – The signed deviation in fringes.

Returns:

The coefficients in lens units, normalized to semi_aperture.

property label: str#

Return a short, human-readable name.

phase: Phase = 2#
reset() → None[source]#

Restore the geometry object found by apply.

units: str = 'fringes'#