def getMinimumZ(geometryObject):
 booleanGeometry = BooleanGeometry()
 booleanGeometry.archivableObjects = geometryObject.archivableObjects
 booleanGeometry.importRadius = setting.getImportRadius(geometryObject.elementNode)
 booleanGeometry.layerThickness = setting.getLayerThickness(geometryObject.elementNode)
 archivableMinimumZ = booleanGeometry.getMinimumZ()
 geometryMinimumZ = geometryObject.getMinimumZ()
 if (archivableMinimumZ == None):
  return geometryMinimumZ
 if (geometryMinimumZ == None):
  return archivableMinimumZ
 return min(archivableMinimumZ, geometryMinimumZ)

def getMinimumZ ( geometryObject ) : booleanGeometry = BooleanGeometry ( ) booleanGeometry . archivableObjects = geometryObject . archivableObjects booleanGeometry . importRadius = setting . getImportRadius ( geometryObject . elementNode ) booleanGeometry . layerThickness = setting . getLayerThickness ( geometryObject . elementNode ) archivableMinimumZ = booleanGeometry . getMinimumZ ( ) geometryMinimumZ = geometryObject . getMinimumZ ( ) if ( archivableMinimumZ == None ) : return geometryMinimumZ if ( geometryMinimumZ == None ) : return archivableMinimumZ return min ( archivableMinimumZ , geometryMinimumZ )
get the minimum of the minimum z of the archivableobjects and the object .