imfusion.typing#

Typing module for the imfusion base module.

Most parts of the ImFusion Python SDK provide PEP 484-style type annotations. This module adds extra types and protocols for type hints and improved type safety.

class imfusion.typing.Spacing(x: float, y: float, z: float)#

Physical extent of each voxel.

Parameters:
  • x (float) – Physical extent in x-direction (in [mm] unless is_metric=false).

  • y (float) – Physical extent in y-direction (in [mm] unless is_metric=false).

  • z (float) – Physical extent in z-direction (in [mm] unless is_metric=false).

Create new instance of Spacing(x, y, z)

x: float#

Alias for field number 0

y: float#

Alias for field number 1

z: float#

Alias for field number 2