Nearest-point selection.