Skip to content

Commit

Permalink
Merge pull request #68 from oberbichler/fix/check
Browse files Browse the repository at this point in the history
Fix check for principle curvature parallel to base vectors
  • Loading branch information
oberbichler authored Apr 1, 2021
2 parents 57ff8d1 + 3a77225 commit b90d21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bowerbird/Curvature/PrincipalCurvature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public bool Compute(Surface surface, double u, double v)
K22 = (G11 * H22 - G12 * H12) / det;
}

if (K12 * K21 < 1e-10)
if (Abs(K12 * K21) < 1e-10)
{
K1 = K11;
K2 = K22;
Expand Down

0 comments on commit b90d21f

Please sign in to comment.