triqs.gf.plot.select_indices.
closest_to
returns list of indices of the points in list L (or mesh!) that are closest to the oriented line A->B