Show adjacent domain names when double clicking a mesh face in Netgen GUI

This commit is contained in:
Matthias Hochsteger 2023-12-05 20:14:18 +01:00
parent 6bd09ee05e
commit 82fb39cef9

View File

@ -3458,6 +3458,14 @@ namespace netgen
if(name != "") if(name != "")
cout << " with name " << name; cout << " with name " << name;
cout << endl; 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 << "\tpoint: " << p << endl;;
cout << "\tnodes: "; cout << "\tnodes: ";
for (int i = 1; i <= sel.GetNP(); i++) for (int i = 1; i <= sel.GetNP(); i++)