def collectFootprintEdges(footprint, layerName):
    """
    Return all edges on given layer in given footprint
    """
    return [e for e in footprint.GraphicalItems() if e.GetLayerName() == layerName]