Repository navigation
Fix specialized shape to shape min distance update and enable_signed_distance flag - #885
Merged
jorisv merged 6 commits intoNov 4, 2026
Merged
Conversation
Contributor
Author
jorisv
requested changes
Oct 16, 2026
jorisv
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the contribution. You can add yourself in the credit section and use rebase instead of merge commit to synchronize your development.
mjd3
force-pushed
the
fix/shape-shape-distance-min-update
branch
from
October 28, 2026 16:36
2016855 to
3984d77
Compare
Contributor
Author
|
@jorisv addressed your feedback here; let me know if you have any other comments. |
jorisv
requested changes
Oct 30, 2026
mjd3
force-pushed
the
fix/shape-shape-distance-min-update
branch
from
November 3, 2026 19:10
f972cd1 to
08a1087
Compare
jorisv
previously approved these changes
Nov 4, 2026
Contributor
|
@mjd3 Thanks, the PR is approved, it will be merged soon. |
Contributor
|
Apparently your patch fix an unit test that was failing for a long time. |
…red instead of new
jorisv
force-pushed
the
fix/shape-shape-distance-min-update
branch
from
November 4, 2026 12:37
09d2205 to
8d2b94a
Compare
jorisv
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two issues:
result.min_distance(and o1/o2/nearest_points/normal) unconditionally, while the generic ShapeShapeDistancer path checksrequest.isSatisfiedand merges throughDistanceResult::update. When a DistanceResult is shared across several pairs (e.g., broadphase checks) a specialized pair evaluated after a closer pair overwrote the minimum, so the query returned the last evaluated pair instead of the closest one. Fix is to merge withDistanceResult::update, like the generic path does; added regression test for this behavior as well.compute_signed_distanceargument, so withDistanceRequest::enable_signed_distance = falsea specialized pair could still report a negative min_distance (different from documentation/GJK path). Fix is to clamp the result at zero; the witness points and normal are unchanged.