Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returns -1 #1

Closed
Aelphy opened this issue Nov 14, 2019 · 2 comments
Closed

returns -1 #1

Aelphy opened this issue Nov 14, 2019 · 2 comments

Comments

@Aelphy
Copy link
Contributor

Aelphy commented Nov 14, 2019

Hi, I just got -1 as nest.first here const auto nest = lbvh::query_device(bvh_dev, lbvh::nearest(point), distance_calculator());
Could you help to explain what is the reason ?

@Aelphy
Copy link
Contributor Author

Aelphy commented Nov 15, 2019

I actually need the index of the closest object.

@ToruNiina
Copy link
Owner

Hi, thank you for reporting the problem.

It's a bug. And I think I found the reason so I will commit it soon. I hope this change fixes your problem.

Actually, this library is not so strictly tested (I just tested it with a small number of sizeless particles), any kind of bugs may remain.

But these days I'm a little busy, so my response would be slow. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants