Print "Remove Illegal Elements" only when having illegal elements

This commit is contained in:
Matthias Hochsteger 2024-03-22 15:43:40 +01:00
parent d4c211f04a
commit e5513d9417

View File

@ -724,7 +724,6 @@ namespace netgen
int it = 10;
int nillegal, oldn;
PrintMessage (1, "Remove Illegal Elements");
// return, if non-pure tet-mesh
/*
if (!mesh3d.PureTetMesh())
@ -733,6 +732,8 @@ namespace netgen
mesh3d.CalcSurfacesOfNode();
nillegal = mesh3d.MarkIllegalElements();
if(nillegal)
PrintMessage (1, "Remove Illegal Elements");
MeshingParameters dummymp;
MeshOptimize3d optmesh(mesh3d, dummymp, OPT_LEGAL);