Skip to content

Commit

Permalink
core: assertion check in initialize_gjk in GJKSolver
Browse files Browse the repository at this point in the history
  • Loading branch information
lmontaut committed Jun 3, 2022
1 parent 492f0ff commit dce544c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/hpp/fcl/narrowphase/narrowphase.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct HPP_FCL_DLLAPI GJKSolver {
support_hint = support_func_cached_guess;
break;
case GJKInitialGuess::BoundingVolumeGuess:
assert((s1.aabb_radius > 0) && (s2.aabb_radius > 0));
guess.noalias() =
s1.aabb_center - (shape.oR1 * s2.aabb_center + shape.ot1);
support_hint =
Expand Down

0 comments on commit dce544c

Please sign in to comment.