mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +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;
|
alledgeparams[geomedgenr-1] = params;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto name = geom.enames[geom.emap.FindIndex(edge)-1];
|
auto name = geom.enames.Size() ? geom.enames[geom.emap.FindIndex(edge)-1] : "";
|
||||||
if(geom.enames.Size() && name != "")
|
if(name != "")
|
||||||
mesh.SetCD2Name(geomedgenr, name);
|
mesh.SetCD2Name(geomedgenr, name);
|
||||||
|
|
||||||
(*testout) << "NP = " << mesh.GetNP() << endl;
|
(*testout) << "NP = " << mesh.GetNP() << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user