From 70a7a1239e60b6a3f580d1d79338bdbb94f58654 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 8 Aug 2019 11:03:19 +0200 Subject: [PATCH] fix loop in mesh compress --- libsrc/meshing/meshclass.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index b00a630e..1e111a7d 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -3270,12 +3270,8 @@ namespace netgen for (int i = 0; i < surfelements.Size(); i++) if (surfelements[i].IsDeleted()) { - surfelements[i] = surfelements.Last(); - surfelements.DeleteLast(); - /* - surfelements.Delete(i); + surfelements.DeleteElement(i); i--; - */ } for (int i = 0; i < segments.Size(); i++)