diff --git a/libsrc/meshing/debugging.cpp b/libsrc/meshing/debugging.cpp index 949bb45c..c5dbd906 100644 --- a/libsrc/meshing/debugging.cpp +++ b/libsrc/meshing/debugging.cpp @@ -36,13 +36,13 @@ namespace netgen mesh->SetMaterial(2, "2_points"); mesh->SetMaterial(3, "3_points"); mesh->SetMaterial(4, "4_points"); - mesh->Compress(); mesh->ClearSurfaceElements(); for (auto & el : openelements) mesh->AddSurfaceElement( el ); + mesh->Compress(); return mesh; }