Merge branch 'show_adjacent_domain_names_on_dblclick' into 'master'

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

See merge request ngsolve/netgen!618
This commit is contained in:
Lackner, Christopher 2023-12-14 15:19:28 +01:00
commit 239b2b5478

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++)