closest inds for 1d mesh