From c77da3246382c0b169cdc93712ddb80156ce0e42 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 16 Mar 2021 18:09:07 +0100 Subject: [PATCH] skip fixed points when checking for mixed mesh --- libsrc/meshing/improve2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/improve2.cpp b/libsrc/meshing/improve2.cpp index fe40259f..acbfa1ea 100644 --- a/libsrc/meshing/improve2.cpp +++ b/libsrc/meshing/improve2.cpp @@ -190,7 +190,12 @@ namespace netgen SurfaceElementIndex sei(i); seia[i] = sei; if (mesh[sei].GetNP() != 3) - mixed = true; + { + const auto & sel = mesh[sei]; + for(auto i : Range(sel.GetNP())) + if(mesh[sel[i]].Type() == INNERPOINT) + mixed = true; + } }); } else