-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add CollisionResult::nearest_points #200
Conversation
@nim65s does it make sense to turn off travis (except for osx) ? |
I prefer not to have opinions about travis. If someone wants to use and maintain it, that's perfectly fine for me, but on my side I have enough work and results with one CI stack :) |
dd9e01c
to
26f5a85
Compare
After some effort, I ended up with the following.
This leads to one strange thing. With the current changes, when the distance lower bound is inferior to the break distance, we don't have Some improvements, kept for later:
|
This PR is ready for reviews. |
this->result->addContact(Contact(this->model1, this->model2, | ||
Contact::NONE, primitive_id, | ||
.5 * (c1+c2), (c2-c1).normalized (), | ||
-distance)); |
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.
TODO: sometimes the contact distance takes the security margin into account. Sometimes it does not. It should be homogenized.
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.
Why to not apply the change here?
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 plan to do it. I wrote it so as not to forget.
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.
Maybe, this should fix another bug
@jmirabel Could you consider adjusting this PR for merging it? |
Not sure what you are asking exactly. I can definitely resolve the git conflicts quickly. Adding unit test, finalizing the code and maybe update the API is another story. I know I won't have time before beginning of March. Then I am not sure yet. |
I assigned myself so that I see this in my list of assigned PRs. |
@@ -60,7 +60,13 @@ void collide(CollisionTraversalNodeBase* node, | |||
collisionRecurse(node, 0, 0, front_list, sqrDistLowerBound); | |||
else | |||
collisionNonRecurse(node, front_list, sqrDistLowerBound); | |||
result.updateDistanceLowerBound (sqrt (sqrDistLowerBound)); |
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.
@jmirabel Why do you remove that here?
This implements the changed suggested in coal-library#200
Not sure yet if the change are all correct. That's why, I decided to split with respect to the content of coal-library#200.
Supersedes by #303. |
This implements the changed suggested in coal-library#200
Not sure yet if the change are all correct. That's why, I decided to split with respect to the content of coal-library#200.
This supersedes #198 .
Work left to be done:
Class ShapeCollisionTraversal should be removed.
As a bonus, this also solves #199.