upxo.meshing.gbconformant.pipeline.units module

Physical sizes beside the settings that are measured in voxels.

upxo.meshing.gbconformant.pipeline.units.voxel_edge(state) → tuple[float, str] | None[source]

(edge length, units) of one raw voxel, or None before an FM-steel input is loaded.

upxo.meshing.gbconformant.pipeline.units.format_length(metres: float, shown: tuple[str, float] | None = None) → str[source]
upxo.meshing.gbconformant.pipeline.units.physical_text(state, setting: Setting | str, value: Any) → str[source]

The physical meaning of value for setting ("" when it has none or the voxel size is unknown).