use PointIndex::INVALID

This commit is contained in:
Joachim Schöberl 2019-08-07 18:34:43 +02:00
parent 1698a71754
commit bcc15fbc30
6 changed files with 10 additions and 10 deletions

View File

@ -1326,7 +1326,7 @@ namespace netgen
// generate initial point
p = edgepoints.Get(1);
lastpi = -1;
lastpi = PointIndex::INVALID;
/*
for (pi = PointIndex::BASE;
@ -1368,7 +1368,7 @@ namespace netgen
np(1) = (1-lam) * edgepoints.Get(j-1)(1) + lam * edgepoints.Get(j)(1);
np(2) = (1-lam) * edgepoints.Get(j-1)(2) + lam * edgepoints.Get(j)(2);
thispi = -1;
thispi = PointIndex::INVALID;
if (i == ne)
{
/*

View File

@ -590,7 +590,7 @@ int AdFront3 :: GetLocals (int fstind,
for (j = 1; j <= locfaces.Get(i).GetNP(); j++)
{
PointIndex pi = locfaces.Get(i).PNum(j);
invpindex[pi] = -1;
invpindex[pi] = PointIndex::INVALID;
}
for (i = 1; i <= locfaces.Size(); i++)

View File

@ -418,7 +418,7 @@ namespace netgen
list.DeleteElement (celind);
for (int k = 0; k < 4; k++)
tempels.Elem(celind)[k] = -1;
tempels.Elem(celind)[k] = PointIndex::INVALID;
tettree.DeleteElement (celind);
freelist.Append (celind);

View File

@ -53,8 +53,8 @@ namespace netgen
Segment :: Segment()
: is_curved(false)
{
pnums[0] = -1;
pnums[1] = -1;
pnums[0] = PointIndex::INVALID;
pnums[1] = PointIndex::INVALID;
edgenr = -1;
singedge_left = 0.;
@ -69,7 +69,7 @@ namespace netgen
surfnr1 = -1;
surfnr2 = -1;
pnums[2] = -1;
pnums[2] = PointIndex::INVALID;
meshdocval = 0;
/*
geominfo[0].trignum=-1;

View File

@ -81,7 +81,7 @@ namespace netgen
transp = 0.3;
locviewer = 0;
showstltrias = 0;
centerpoint = 0;
centerpoint = PointIndex::INVALID;
usedispllists = 1;
strcpy (selectvisual, "cross");

View File

@ -55,8 +55,8 @@ namespace netgen
selface = -1;
selelement = -1;
locpi = 1;
selpoint = -1;
selpoint2 = -1;
selpoint = PointIndex::INVALID;
selpoint2 = PointIndex::INVALID;
seledge = -1;
minh = 0.0;