def getLabel(halfEdge):
    """Return the mesh number of halfEdge."""

    if halfEdge.incidentFace:
        return halfEdge.incidentFace.label 
    else:
        return halfEdge.twin.incidentFace.label