From b4bf1172bcb4bfc3bc3e547bfc967f3a30b6de0a Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 4 Oct 2021 15:52:56 +0200 Subject: [PATCH] fix length of occ dim2 boundaries --- libsrc/meshing/meshclass.cpp | 2 +- libsrc/occ/occgenmesh.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 7ffa7f09..6458c655 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -6937,7 +6937,7 @@ namespace netgen cd2names[i] = nullptr; } //if (cd2names[cd2nr]) delete cd2names[cd2nr]; - if (abcname != "default") + if (abcname != "default" && abcname != "") cd2names[cd2nr] = new string(abcname); else cd2names[cd2nr] = nullptr; diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index f2b46bf4..b7246f47 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -599,8 +599,7 @@ namespace netgen } auto name = geom.enames.Size() ? geom.enames[geom.emap.FindIndex(edge)-1] : ""; - if(name != "") - mesh.SetCD2Name(geomedgenr, name); + mesh.SetCD2Name(geomedgenr, name); (*testout) << "NP = " << mesh.GetNP() << endl; //(*testout) << pnums[pnums.Size()-1] << endl;