Skip to content

Does a hashgrid query only iterate over values within radius? #62

Answered by mmacklin
cadop asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cadop, the HashGrid will give back all points in cells that fall inside the query radius. When there are hash conflicts it means that some points outside of query radius will be returned, and you should check for this in your kernel as well.

The reason the query doesn't do the check itself is that usually the first thing kernels do is to compute the distance themselves, so it would be redundant (like you mentioned).

I will make this more clear in the docs.

Thanks,
Miles

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cadop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants