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

Support computing distance between half-spaces and some other shapes #2

Open
wants to merge 1 commit into
base: trimeshContactPoints20200813
Choose a base branch
from

Conversation

gywn
Copy link
Collaborator

@gywn gywn commented Jul 17, 2024

This PR fills the missing template specialization of GJKSolver_libccd::shapeDistance and GJKSolver_indep::shapeDistance, which implement distance computation between half-spaces and some other geometries (spheres, capsules, and boxes) widely used in quasi-real-time collision checking.

These specializations are necessary because libccd's GJK solver suffers from segfaults as the half-space geometry does not have finite support.

This will stay as a contribution to the newer upstream if we were to merge the upstream, since the upstream differs from the current branch only in two newly implemented template specializations of sphere-box and sphere-cylinder distance calculation. c.f.

@gywn
Copy link
Collaborator Author

gywn commented Jul 17, 2024

@kanbouchou @snozawa

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

Successfully merging this pull request may close these issues.

1 participant