mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
old style for loop :-(
This commit is contained in:
parent
6db1c2d831
commit
b5260849bb
@ -86,16 +86,42 @@ public:
|
|||||||
{ 4, 2, 3, F423 }
|
{ 4, 2, 3, F423 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
// too advanced ...
|
||||||
for (auto [i1,i2,inew] : elist)
|
for (auto [i1,i2,inew] : elist)
|
||||||
if (mapnums.count(VNUM(inew)))
|
if (mapnums.count(VNUM(inew)))
|
||||||
refedges.push_back( { i1, i2, mapnums[VNUM(inew)] });
|
refedges.push_back( { i1, i2, mapnums[VNUM(inew)] });
|
||||||
|
*/
|
||||||
|
for (int i = 0; i < size(elist); i++)
|
||||||
|
{
|
||||||
|
int i1 = elist[i][0];
|
||||||
|
int i2 = elist[i][1];
|
||||||
|
int inew = elist[i][2];
|
||||||
|
if (mapnums.count(VNUM(inew)))
|
||||||
|
refedges.push_back( { i1, i2, mapnums[VNUM(inew)] });
|
||||||
|
}
|
||||||
|
|
||||||
refedges.push_back( { 0, 0, 0 } );
|
refedges.push_back( { 0, 0, 0 } );
|
||||||
splitedges = (int3*) &refedges[0][0];
|
splitedges = (int3*) &refedges[0][0];
|
||||||
|
|
||||||
|
/*
|
||||||
|
// too advanced ...
|
||||||
for (auto [i1,i2,i3,inew] : flist)
|
for (auto [i1,i2,i3,inew] : flist)
|
||||||
if (mapnums.count(VNUM(inew)))
|
if (mapnums.count(VNUM(inew)))
|
||||||
reffaces.push_back( { i1, i2, i3, mapnums[VNUM(inew)] });
|
reffaces.push_back( { i1, i2, i3, mapnums[VNUM(inew)] });
|
||||||
|
*/
|
||||||
|
for (int i = 0; i < size(flist); i++)
|
||||||
|
{
|
||||||
|
int i1 = flist[i][0];
|
||||||
|
int i2 = flist[i][1];
|
||||||
|
int i3 = flist[i][2];
|
||||||
|
int inew = flist[i][3];
|
||||||
|
if (mapnums.count(VNUM(inew)))
|
||||||
|
reffaces.push_back( { i1, i2, i3, mapnums[VNUM(inew)] });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
reffaces.push_back( { 0, 0, 0 } );
|
reffaces.push_back( { 0, 0, 0 } );
|
||||||
splitfaces = (int4*) &reffaces[0][0];
|
splitfaces = (int4*) &reffaces[0][0];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user