-
Notifications
You must be signed in to change notification settings - Fork 310
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
[SofaBaseCollision] Remove dependencies on BaseIntTool #2081
Conversation
[ci-build][with-all-tests] |
|
||
int MinProximityIntersection::computeIntersection(Cube& cube1, Cube& cube2, OutputVector* contacts) | ||
{ | ||
return BaseProximityIntersection::testIntersection(cube1, cube2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fredroy do you confirm the typo here? Shouldn't it be BaseProximityIntersection::computeIntersection
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do confirm it should be computeIntersection...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'm on it
This follows #2073
BaseIntTool/MeshIntTool (and their friends IntrUtility stuff) was mostly created to handle OBB/Capsule.
Their design is quite weird (at least to me) and it is based on a code copied from GeometricTools (so the copyright/licensing is nebulous in the best case).
This PR makes SofaBaseCollision to not rely at all on those code, mainly to revert back the code from a long time ago.
It fixes also the fact that DiscreteIntersection was using proximities for the various computeIntersection() [1st error], but not using proximities in the various testIntersection in the proximities-based Intersections [2nd error]
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if