Skip to content

Commit

Permalink
change eeccd a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
lsltql committed Dec 23, 2023
1 parent c1f4a35 commit 3e67fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/CuLagrange/fem/Ccds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ eeccd(VecT ea0, VecT ea1, VecT eb0, VecT eb1, VecT dea0, VecT dea1, VecT deb0,

T dist2_cur = dist2_ee_unclassified(ea0, ea1, eb0, eb1);
T dFunc = dist2_cur - thickness * thickness;
// suspecious code, check twice
if(dFunc <= 0)
return true;
if (dFunc <= 0) {
// since we ensured other place that all dist smaller than dHat are
// positive, this must be some far away nearly parallel edges
Expand Down

0 comments on commit 3e67fa1

Please sign in to comment.