From 95be76d8ee898a515396e294b470c49f71192ee1 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 10 May 2022 18:18:29 +0200 Subject: [PATCH] surface color to mesh from geometry --- libsrc/meshing/basegeom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 586d351f..f5d67144 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -785,6 +785,8 @@ namespace netgen { auto & face = *faces[k]; FaceDescriptor fd(k+1, face.domin+1, face.domout+1, k+1); + if(face.properties.col) + fd.SetSurfColour(*face.properties.col); mesh.AddFaceDescriptor(fd); mesh.SetBCName(k, face.properties.GetName()); if(face.primary == &face)