Code Monkey home page Code Monkey logo

Comments (5)

Andlon avatar Andlon commented on September 18, 2024 2

I believe this bug is fixed in master, but the fix has not made its way into the latest release on crates.io. Is there any chance a new release could be prepared? Given that this bug effectively breaks nearest-neighbor lookup, it seems to me that bringing a fix out ought to be prioritized.

from rstar.

rmanoka avatar rmanoka commented on September 18, 2024 2

Version 0.9.0 has been released and contains the fix. Thanks everyone for the contributions!

from rstar.

rmanoka avatar rmanoka commented on September 18, 2024

It seems like the Envelope implementation for AABB has a bug. This particular line squares the min and max values before comparing them. However, that can cause the actual min to be considered as the max. Moving the squaring lines below the to below the compare-and-swap operation seems to fix the test case.

@aschampion can you review what I've mentioned above and see if that makes sense. From git log, it seems like you changed the logic while optimizing the computation of min_max_dist_2 (from O(d^2) to O(d)).

from rstar.

aschampion avatar aschampion commented on September 18, 2024

Thanks for getting in touch @rmanoka.

I'm not sure that's right -- we care about min and max absolute value, so squaring them first will not affect which is min and which is max. And doing the comparison first as in #64 will be incorrect in cases where the max is negative.

The issue reported here may be due to the consistency issue reported in #40. I'm not at my workstation, but will rebase and update #40 tomorrow as requested and check whether it resolves this test case.

from rstar.

rmanoka avatar rmanoka commented on September 18, 2024

@aschampion Thanks for clarifying; my suggestion was indeed incorrect.

from rstar.

Related Issues (20)

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.