Giter VIP home page Giter VIP logo

Comments (4)

sherm1 avatar sherm1 commented on July 17, 2024

@hongkai-dai: For point 2 above, the calculated dist ought to be a squared distance like all the other Dist2 calculations there (but of course the variable name shouldn't have been dist if it isn't a distance!). So it can still be calculated without a square root: d²=(v⋅w)²/(w⋅w).

from libccd.

sherm1 avatar sherm1 commented on July 17, 2024

Oh, I take it back. Combined with point 3 I see you need the actual distance there (and sqrt(el->dist)) to compute a meaningful termination at 975.

from libccd.

sherm1 avatar sherm1 commented on July 17, 2024

This also makes me wonder whether epa_tolerance is actually a distance squared, which is how it is being used. Looks like it is set to .0001m² by default which means the length tolerance is .01m. Is that intentional @danfis? That seems like a very loose tolerance.

from libccd.

hongkai-dai avatar hongkai-dai commented on July 17, 2024

@sherm1 for point 2, if we want to compute the squared distance, it should be d²=(v⋅w)²/(w⋅w), that is still not what the code dist = ccdVec3Dot(&out->v, &el->witness); does (it computes v⋅w), so the code is still wrong.

from libccd.

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.