Skip to content

Commit dc2619d

Browse files
committed
Make within_edge_on_side more robust with a relative tolerance
1 parent 397fd7c commit dc2619d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/geom/intersection_tools.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,17 @@ bool within_edge_on_side(const Elem & elem,
120120
if (within_result == BETWEEN)
121121
{
122122
corner.set_edge(last_v, other_v);
123-
libmesh_assert(corner.build_edge(elem)->close_to_point(p, tol));
123+
libmesh_assert(corner.build_edge(elem)->contains_point(p, tol));
124124
}
125125
else if (within_result == AT_BEGINNING)
126126
{
127127
corner.set_vertex(last_v);
128-
libmesh_assert(elem.point(last_v).absolute_fuzzy_equals(p, tol));
128+
libmesh_assert(elem.point(last_v).relative_fuzzy_equals(p, tol));
129129
}
130130
else
131131
{
132132
corner.set_vertex(other_v);
133-
libmesh_assert(elem.point(other_v).absolute_fuzzy_equals(p, tol));
133+
libmesh_assert(elem.point(other_v).relative_fuzzy_equals(p, tol));
134134
}
135135
return true;
136136
}

0 commit comments

Comments
 (0)