From 23c6b96b47e20c444a6bb78165dc7e425822b466 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 23 Feb 2024 17:39:43 +0100 Subject: [PATCH] Move RemoveIllegalElements to MeshVolume() --- libsrc/meshing/basegeom.cpp | 3 --- libsrc/meshing/meshfunc.cpp | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 0e6900e2..d1dfb8e3 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -1271,9 +1271,6 @@ namespace netgen if (res != MESHING3_OK) return 1; if (multithread.terminate) return 0; - RemoveIllegalElements (*mesh); - if (multithread.terminate) return 0; - MeshQuality3d (*mesh); } diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index 4ddc2844..451a44cb 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -515,6 +515,7 @@ namespace netgen throw NgException ("Stop meshing since surface mesh not consistent"); } } + RemoveIllegalElements (mesh); } void MergeMeshes( Mesh & mesh, Array & md )