mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
occ fix setcd2names if geom.enames is empty
This commit is contained in:
parent
22344e43a6
commit
77b5346099
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user