NeighborSearchGridBurst
NeighborSearchGridBurst copied to clipboard
SearchWithin should loop on close grid cell first
Because we need to specify a maximum number of neighbors to fetch when using the SearchWithin function, if this maximum number of neighbors is less than the number of real neighbors, the closest points will not be fetched first.
Ideally, the triple loop should start from closest cells and keep going further.