From 12aaaf1e6ca4c3328d408a67f640d28eb1a11e00 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 14 May 2024 13:57:01 +0200 Subject: [PATCH] do not EdgeSwap with quads --- libsrc/meshing/improve2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/meshing/improve2.cpp b/libsrc/meshing/improve2.cpp index a2b28468..e8ae2dbc 100644 --- a/libsrc/meshing/improve2.cpp +++ b/libsrc/meshing/improve2.cpp @@ -57,6 +57,7 @@ namespace netgen if (t2 == -1) return false; if (swapped[t1] || swapped[t2]) return false; if (mesh[t2].IsDeleted()) return false; + if (mesh[t2].GetNP() != 3) return false; const int faceindex = mesh[t1].GetIndex(); const int surfnr = mesh.GetFaceDescriptor (faceindex).SurfNr();