From 82fb39cef9248c22255038717f51827e1d73dd0f Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 5 Dec 2023 20:14:18 +0100 Subject: [PATCH] Show adjacent domain names when double clicking a mesh face in Netgen GUI --- libsrc/visualization/vsmesh.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index d4bf2dfe..7e439d0f 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -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++)