mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
Fix printed face name on double click for 2d meshes
This commit is contained in:
parent
93a76faca6
commit
6e6c23b05e
@ -3448,7 +3448,13 @@ namespace netgen
|
|||||||
cout << endl << "select element " << selelement
|
cout << endl << "select element " << selelement
|
||||||
<< " on face " << sel.GetIndex();
|
<< " on face " << sel.GetIndex();
|
||||||
// output face name
|
// output face name
|
||||||
auto name = GetMesh()->GetFaceDescriptor(sel.GetIndex()).GetBCName();
|
auto mesh = GetMesh();
|
||||||
|
string name;
|
||||||
|
if(mesh->GetDimension() == 3)
|
||||||
|
name = mesh->GetFaceDescriptor(sel.GetIndex()).GetBCName();
|
||||||
|
else
|
||||||
|
name = mesh->GetMaterial(sel.GetIndex());
|
||||||
|
|
||||||
if(name != "")
|
if(name != "")
|
||||||
cout << " with name " << name;
|
cout << " with name " << name;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user