triqs.gfs.plot.select_indices.closest_to

triqs.gfs.plot.select_indices.closest_to(A, B, L, verbose=False)[source]

Return the indices of the points in L that lie closest to the oriented segment A -> B.

Parameters:
A, Bsequence of float of length 2

End-points of the segment.

Lsequence of points

Candidate points (e.g. a mesh).

verbosebool, optional

If True, print the discretised line during the refinement.

Returns:
list of int

Indices in L along the segment.