mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
fix (recent) edge index error
This commit is contained in:
parent
2b7c1af813
commit
32320a48c1
@ -2285,7 +2285,7 @@ namespace netgen
|
|||||||
for (int j = 0; j < eledges.Size(); j++)
|
for (int j = 0; j < eledges.Size(); j++)
|
||||||
{
|
{
|
||||||
int vi1, vi2;
|
int vi1, vi2;
|
||||||
GetEdgeVertices (eledges[j], vi1, vi2);
|
GetEdgeVertices (eledges[j]+1, vi1, vi2);
|
||||||
|
|
||||||
bool has1 = 0;
|
bool has1 = 0;
|
||||||
bool has2 = 0;
|
bool has2 = 0;
|
||||||
@ -2307,13 +2307,13 @@ namespace netgen
|
|||||||
if(withorientation)
|
if(withorientation)
|
||||||
{
|
{
|
||||||
if(w1==vi1 && w2==vi2)
|
if(w1==vi1 && w2==vi2)
|
||||||
fedges[k] = eledges[j];
|
fedges[k] = eledges[j]+1;
|
||||||
if(w1==vi2 && w2==vi1)
|
if(w1==vi2 && w2==vi1)
|
||||||
fedges[k] = -eledges[j];
|
fedges[k] = -eledges[j]+1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if((w1==vi1 && w2==vi2) || (w1==vi2 && w2==vi1))
|
if((w1==vi1 && w2==vi2) || (w1==vi2 && w2==vi1))
|
||||||
fedges[k] = eledges[j];
|
fedges[k] = eledges[j]+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user