mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
Show adjacent domain names when double clicking a mesh face in Netgen GUI
This commit is contained in:
parent
6bd09ee05e
commit
82fb39cef9
@ -3458,6 +3458,14 @@ namespace netgen
|
||||
if(name != "")
|
||||
cout << " with name " << name;
|
||||
cout << endl;
|
||||
if(mesh->GetDimension() == 3) {
|
||||
auto & fd = mesh->GetFaceDescriptor(sel.GetIndex());
|
||||
auto domin = fd.DomainIn();
|
||||
auto domout = fd.DomainOut();
|
||||
string name_in = domin >0 ? mesh->GetMaterial(domin) : "";
|
||||
string name_out = domout >0 ? mesh->GetMaterial(domout) : "";
|
||||
cout << "\tadjacent domains " << domin << ": " << name_in << ", " << domout << ": " << name_out << endl;
|
||||
}
|
||||
cout << "\tpoint: " << p << endl;;
|
||||
cout << "\tnodes: ";
|
||||
for (int i = 1; i <= sel.GetNP(); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user