mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-24 23:52:03 +05:00
Fix seg/trig intersection tolerance
This commit is contained in:
parent
0a2479bf00
commit
e7e15069f3
@ -416,7 +416,7 @@ struct GrowthVectorLimiter
|
|||||||
SolveLinearSystem(col1, col2, col3, rhs, bary);
|
SolveLinearSystem(col1, col2, col3, rhs, bary);
|
||||||
|
|
||||||
intersection.lam1 = 0;
|
intersection.lam1 = 0;
|
||||||
double eps = 0.1;
|
double eps = 1e-4;
|
||||||
if (bary.X() >= -eps && bary.Y() >= -eps && bary.X() + bary.Y() <= 1 + eps)
|
if (bary.X() >= -eps && bary.Y() >= -eps && bary.X() + bary.Y() <= 1 + eps)
|
||||||
{
|
{
|
||||||
intersection.bary[0] = bary.X();
|
intersection.bary[0] = bary.X();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user