tolerancing.types.element#

Element Tolerance Types Module

This module contains the tolerance types that move a group of consecutive surfaces as one rigid body: element decenter, tilt and roll. Tilts and rolls are about a pivot point (RigidElement); surfaces after the element do not move.

Kramer Harrison, 2026

Classes

ElementDecenterTolerance(optic, first, last, ...)

Decenter of an element along its local axis ("x" or "y"), in lens units.

ElementRollTolerance(optic, first, last[, pivot])

Roll of an element about its local z axis through the pivot, in degrees.

ElementTiltTolerance(optic, first, last, axis)

Tilt of an element about its local axis ("x" or "y") through the pivot, in degrees.

ElementTolerance(optic, first, last[, axis, ...])

Rigid-body move of the surfaces first to last.

class ElementDecenterTolerance(optic: Optic, first: int, last: int, axis: str)[source]#

Decenter of an element along its local axis (“x” or “y”), in lens units.

apply(delta: float) → None#

Move the element by delta from its position before the move.

kind: str = 'decenter'#
property label: str#

Return a short, human-readable name, e.g. "Element Tilt X S3-4".

phase: Phase = 3#
reset() → None#

Restore the positions from before the move.

scale: float = 1.0#
units: str = 'lens units'#
class ElementRollTolerance(optic: Optic, first: int, last: int, pivot: str | float = 'center')[source]#

Roll of an element about its local z axis through the pivot, in degrees.

apply(delta: float) → None#

Move the element by delta from its position before the move.

kind: str = 'roll'#
property label: str#

Return a short, human-readable name, e.g. "Element Tilt X S3-4".

phase: Phase = 3#
reset() → None#

Restore the positions from before the move.

scale: float = 0.017453292519943295#
units: str = 'degrees'#
class ElementTiltTolerance(optic: Optic, first: int, last: int, axis: str, pivot: str | float = 'center')[source]#

Tilt of an element about its local axis (“x” or “y”) through the pivot, in degrees.

apply(delta: float) → None#

Move the element by delta from its position before the move.

kind: str = 'tilt'#
property label: str#

Return a short, human-readable name, e.g. "Element Tilt X S3-4".

phase: Phase = 3#
reset() → None#

Restore the positions from before the move.

scale: float = 0.017453292519943295#
units: str = 'degrees'#
class ElementTolerance(optic: Optic, first: int, last: int, axis: str = 'z', pivot: str | float = 'center')[source]#

Rigid-body move of the surfaces first to last.

Each deviation is applied to the current surface positions, so changes applied earlier in a trial (such as a thickness tolerance inside the element) are kept. reset restores the positions from before the move exactly.

Parameters:
  • optic – The optic the tolerance applies to.

  • first – The first surface of the element.

  • last – The last surface of the element (inclusive).

  • axis – The element axis of the move: "x", "y" or "z".

  • pivot – The pivot point of tilts and rolls: "center" (default, midway between the first and last vertex), "first", "last", or the distance from the first vertex along the element axis, in lens units.

Variables:
  • kind (str) – "decenter", "tilt" or "roll".

  • scale (float) – Factor from deviation units to the move (degrees to radians for tilts and rolls).

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

Move the element by delta from its position before the move.

kind: str = ''#
property label: str#

Return a short, human-readable name, e.g. "Element Tilt X S3-4".

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

Restore the positions from before the move.

scale: float = 1.0#
units: str = ''#