flexible-collision-library / fcl

Flexible Collision Library
https://flexible-collision-library.github.io/
Other
1.35k stars 414 forks source link

narrowphase distance: fix signed distance when touching #544

Open c-andy-martin opened 2 years ago

c-andy-martin commented 2 years ago

In the case of mesh or octree distance checks, we do a collision after distance checking when doing signed distance to find penetration depth. However, the maximum penetration depth was initialized to numeric limits min, which is slightly greater than zero. If the only contact is exactly 0.0 depth, the code fails. Fix this to the negative max.


This change is Reviewable