occ fix setcd2names if geom.enames is empty

This commit is contained in:
Christopher Lackner 2021-09-17 17:43:03 +02:00
parent 22344e43a6
commit 77b5346099

View File

@ -595,8 +595,8 @@ namespace netgen
alledgeparams[geomedgenr-1] = params;
}
auto name = geom.enames[geom.emap.FindIndex(edge)-1];
if(geom.enames.Size() && name != "")
auto name = geom.enames.Size() ? geom.enames[geom.emap.FindIndex(edge)-1] : "";
if(name != "")
mesh.SetCD2Name(geomedgenr, name);
(*testout) << "NP = " << mesh.GetNP() << endl;