ENH: add triFace valid() method

- similar to edge valid(), true if vertices are unique, non-negative
This commit is contained in:
Mark Olesen
2022-03-15 12:54:20 +01:00
parent 46a1e7e21e
commit 079d5f2771
10 changed files with 105 additions and 72 deletions

View File

@ -820,7 +820,7 @@ Foam::triSurface Foam::isoSurfaceCell::stitchTriPoints
triPointReverseMap[rawPointi+2],
0
);
if ((tri[0] != tri[1]) && (tri[0] != tri[2]) && (tri[1] != tri[2]))
if (tri.valid())
{
newToOldTri.append(oldTriI);
dynTris.append(tri);

View File

@ -949,7 +949,7 @@ Foam::triSurface Foam::isoSurfacePoint::stitchTriPoints
);
rawPointi += 3;
if ((tri[0] != tri[1]) && (tri[0] != tri[2]) && (tri[1] != tri[2]))
if (tri.valid())
{
newToOldTri.append(oldTriI);
dynTris.append(tri);