fix import of neutral file format with multiple surface numbers

This commit is contained in:
Christopher Lackner 2017-08-01 10:15:07 +02:00
parent 0fe8f9bfcf
commit ad490200a0

View File

@ -263,6 +263,7 @@ namespace netgen
}
mesh.AddFaceDescriptor (FaceDescriptor (1, 1, 0, 0));
int nfd = 1;
in >> nse;
for (i = 1; i <= nse; i++)
@ -271,6 +272,11 @@ namespace netgen
in >> mat;
Element2d el (TRIG);
el.SetIndex (mat);
while(nfd<mat)
{
++nfd;
mesh.AddFaceDescriptor(FaceDescriptor(nfd,nfd,0,0));
}
for (j = 1; j <= 3; j++)
in >> el.PNum(j);
mesh.AddSurfaceElement (el);