Skip to content

Commit

Permalink
Add comments, clean a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
wlinna committed Sep 5, 2024
1 parent 4ab5a7d commit 75c903a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/parry3d/tests/geometry/epa3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ fn triangle_vertex_touches_triangle_edge_epa() {
None,
);

assert!(!matches!(gjk_result, query::gjk::GJKResult::NoIntersection(_)), "PARTIAL SUCCESS: contact_support_map_support_map_with_params did not crash but did not produce the desired result");
assert!(!matches!(gjk_result, query::gjk::GJKResult::NoIntersection(_)),
"PARTIAL SUCCESS: contact_support_map_support_map_with_params did not crash but did not produce the desired result");
}
3 changes: 3 additions & 0 deletions src/query/epa/epa2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ impl EPA {
}

if !(proj_inside1 || proj_inside2 || proj_inside3) {
// Related issues:
// https://github.com/dimforge/parry/issues/253
// https://github.com/dimforge/parry/issues/246
log::debug!("Hit unexpected state in EPA: proj_inside1, proj_inside2 and proj_inside3 are all false. At least one of them should be true.");
return None;
}
Expand Down
3 changes: 3 additions & 0 deletions src/query/epa/epa3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ impl EPA {
}

if !(proj_inside1 || proj_inside2 || proj_inside3 || proj_inside4) {
// Related issues:
// https://github.com/dimforge/parry/issues/253
// https://github.com/dimforge/parry/issues/246
log::debug!("Hit unexpected state in EPA: proj_is_inside1, proj_is_inside2, proj_is_inside3 and proj_inside4 are all false. At least one of them should be true.");
return None;
}
Expand Down

0 comments on commit 75c903a

Please sign in to comment.