You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could use a visited array to mark the points that have been visited, that would greatly reduce the number of calls to region_query, which in your case is being called multiple times even for a single point. But if you use a visited array, you would only have to call the region_query once for each point.