From 64e40a25e0f80ff4d90edb25abd5ca2f37b79787 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 6 Nov 2021 08:51:36 +0100 Subject: [PATCH] fixing name for unnamed face (problem after restructuring facenames) --- libsrc/occ/occgenmesh.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index 98b248cf..f437b5b3 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -413,6 +413,8 @@ namespace netgen if(auto & opt_name = geom.fprops[facenr-1]->name) mesh.GetFaceDescriptor(facenr).SetBCName(&*opt_name); + else + mesh.GetFaceDescriptor(facenr).SetBCName(new string("bc_"+ToString(facenr))); // mem-leak ! mesh.GetFaceDescriptor(facenr).SetBCProperty(facenr); // ACHTUNG! STIMMT NICHT ALLGEMEIN (RG)