From 4f7a85f70f3ed132dc077fd7489ce624f5d79975 Mon Sep 17 00:00:00 2001
From: "Dmitry Yu. Naumov" <github@naumov.de>
Date: Thu, 21 Jun 2018 13:36:17 +0200
Subject: [PATCH] [MGTL] Pass axial symmetry to constructed meshes.

The bulk mesh property must be set on the newly created
meshes. The bulk mesh is not available upon the mesh construction
and it is simpler to set the property afterwards, than
to pass it through two function calls.
---
 MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp b/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp
index f2ab076f8fb..96b2a4e609a 100644
--- a/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp
+++ b/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp
@@ -106,6 +106,12 @@ constructAdditionalMeshesFromGeoObjects(GeoLib::GEOObjects const& geo_objects,
                   std::back_inserter(additional_meshes));
     }
 
+    // Set axial symmetry for the additional meshes to the same value as the
+    // "bulk" mesh.
+    std::for_each(begin(additional_meshes), end(additional_meshes),
+                  [axial_symmetry = mesh.isAxiallySymmetric()](auto& m) {
+                      m->setAxiallySymmetric(axial_symmetry);
+                  });
     return additional_meshes;
 }
 }  // namespace MeshGeoToolsLib
-- 
GitLab