From 180ebbda928f8d23e2fb81bc7d0c7d781791ad83 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 9 Aug 2017 14:31:26 +0200 Subject: [PATCH] delete edges with negative edgenr in mesh.Compress --- libsrc/meshing/meshclass.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index a40deef9..d444a8b1 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -3193,6 +3193,10 @@ namespace netgen i--; } + for(int i=0; i < segments.Size(); i++) + if(segments[i].edgenr < 0) + segments.Delete(i--); + pused.Clear(); for (int i = 0; i < volelements.Size(); i++) {