Find surface element of point: fix local coordinates for TRIG

TRIG and TRIG6 are handled differently, see nginterface_v2.cpp:1114
This commit is contained in:
Matthias Hochsteger 2021-04-09 14:12:06 +02:00
parent d803150b87
commit 190e22b06d

View File

@ -5303,6 +5303,14 @@ namespace netgen
sol.X() = lam(0);
sol.Y() = lam(1);
if (SurfaceElement(element).GetType() !=TRIG6 )
{
sol.Z() = sol.X();
sol.X() = sol.Y();
sol.Y() = 1.0 - sol.Z() - sol.X();
}
}
if (sol.X() >= -eps && sol.Y() >= -eps &&
sol.X() + sol.Y() <= 1+eps)