mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
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:
parent
d803150b87
commit
190e22b06d
@ -5303,6 +5303,14 @@ namespace netgen
|
|||||||
|
|
||||||
sol.X() = lam(0);
|
sol.X() = lam(0);
|
||||||
sol.Y() = lam(1);
|
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 &&
|
if (sol.X() >= -eps && sol.Y() >= -eps &&
|
||||||
sol.X() + sol.Y() <= 1+eps)
|
sol.X() + sol.Y() <= 1+eps)
|
||||||
|
Loading…
Reference in New Issue
Block a user