Fix seg/trig intersection tolerance

This commit is contained in:
Matthias Hochsteger 2024-10-30 21:53:36 +01:00
parent 0a2479bf00
commit e7e15069f3

View File

@ -416,7 +416,7 @@ struct GrowthVectorLimiter
SolveLinearSystem(col1, col2, col3, rhs, bary);
intersection.lam1 = 0;
double eps = 0.1;
double eps = 1e-4;
if (bary.X() >= -eps && bary.Y() >= -eps && bary.X() + bary.Y() <= 1 + eps)
{
intersection.bary[0] = bary.X();