Skip to content

Commit

Permalink
Make within_edge_on_side more robust with a relative tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Nov 14, 2022
1 parent be46863 commit 69c2779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/geom/intersection_tools.C
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ bool within_edge_on_side(const Elem & elem,
if (within_result == BETWEEN)
{
corner.set_edge(last_v, other_v);
libmesh_assert(corner.build_edge(elem)->close_to_point(p, tol));
libmesh_assert(corner.build_edge(elem)->contains_point(p, tol));
}
else if (within_result == AT_BEGINNING)
{
corner.set_vertex(last_v);
libmesh_assert(elem.point(last_v).absolute_fuzzy_equals(p, tol));
libmesh_assert(elem.point(last_v).relative_fuzzy_equals(p, tol));
}
else
{
corner.set_vertex(other_v);
libmesh_assert(elem.point(other_v).absolute_fuzzy_equals(p, tol));
libmesh_assert(elem.point(other_v).relative_fuzzy_equals(p, tol));
}
return true;
}
Expand Down

0 comments on commit 69c2779

Please sign in to comment.