fixing name for unnamed face (problem after restructuring facenames)

This commit is contained in:
Joachim Schoeberl 2021-11-06 08:51:36 +01:00
parent 239cdf694f
commit 64e40a25e0

View File

@ -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)