From c3441344fbf86f7c7cc3a9a7b892230b69f6a54e Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 23 Jun 2020 18:52:29 +0200 Subject: [PATCH] set material in tensorproduct mesh in 2d as well --- libsrc/geom2d/genmesh2d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/geom2d/genmesh2d.cpp b/libsrc/geom2d/genmesh2d.cpp index 89eaa098..c1eadf1a 100644 --- a/libsrc/geom2d/genmesh2d.cpp +++ b/libsrc/geom2d/genmesh2d.cpp @@ -550,6 +550,10 @@ namespace netgen mesh -> AddSurfaceElement (el); } + char* material; + geometry.GetMaterial(domnr, material); + if(material) + mesh->SetMaterial(domnr, material); }