mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 22:50:33 +05:00
Merge branch 'fix_import_neutral_mesh' into 'master'
fix import of neutral file format with multiple surface numbers See merge request !54
This commit is contained in:
commit
fd9fe340e6
@ -263,7 +263,8 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
mesh.AddFaceDescriptor (FaceDescriptor (1, 1, 0, 0));
|
mesh.AddFaceDescriptor (FaceDescriptor (1, 1, 0, 0));
|
||||||
|
int nfd = 1;
|
||||||
|
|
||||||
in >> nse;
|
in >> nse;
|
||||||
for (i = 1; i <= nse; i++)
|
for (i = 1; i <= nse; i++)
|
||||||
{
|
{
|
||||||
@ -271,6 +272,11 @@ namespace netgen
|
|||||||
in >> mat;
|
in >> mat;
|
||||||
Element2d el (TRIG);
|
Element2d el (TRIG);
|
||||||
el.SetIndex (mat);
|
el.SetIndex (mat);
|
||||||
|
while(nfd<mat)
|
||||||
|
{
|
||||||
|
++nfd;
|
||||||
|
mesh.AddFaceDescriptor(FaceDescriptor(nfd,nfd,0,0));
|
||||||
|
}
|
||||||
for (j = 1; j <= 3; j++)
|
for (j = 1; j <= 3; j++)
|
||||||
in >> el.PNum(j);
|
in >> el.PNum(j);
|
||||||
mesh.AddSurfaceElement (el);
|
mesh.AddSurfaceElement (el);
|
||||||
|
Loading…
Reference in New Issue
Block a user