Coder Social home page Coder Social logo

Problem with return -1 about lbvh HOT 1 OPEN

vortexmethods avatar vortexmethods commented on May 22, 2024
Problem with return -1

from lbvh.

Comments (1)

ToruNiina avatar ToruNiina commented on May 22, 2024

I have forgotten almost everything about that issue (I think you mean #1). It is over 4 years ago.
But the issue is closed as completed with a commit, so it should have been fixed at that time.

At least, it seems that the function returns -1 if it cannot find anything in the tree at a glance. The commit (28d7344) linked to #1 changes the range, so possibly it fixes the range of search .

So, the possible causes could be: 1) the bvh was not constructed, 2) you have nothing in the tree, 3) wrong AABB distance calculation, 4) some bug in query_device(bvh, query_nearest) which implements Nick Roussopoulos, Stephen Kelley, Frederic Vincent, "Nearest Neighbor Queries", ACM-SIGMOD (1995). You may find differences between the paper and the implementation (https://github.com/ToruNiina/lbvh/blob/master/lbvh/query.cuh#L80).

If you met an error in your case and environment, please describe your problem in detail with a concrete, reproducible example. Otherwise, I will not be able to find a problem or check if it has been fixed.

Note that, since I don't have much time these days, I may not be able to find the time to fix it. It should take a long time because I would have to start from recalling what the problem was and what I did. But if you send a PullReq, I will review it.

from lbvh.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.