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
Lthat lie closest to the oriented segmentA -> 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
Lalong the segment.