From 6aa8062383b2b6429c8a9ad90602a0d17336aaa0 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 25 Apr 2022 10:44:58 +0200
Subject: [PATCH] [MeL] Use Point3d::asEigenVector3d() instead of Eigen::Map.

---
 MeshLib/ElementCoordinatesMappingLocal.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/MeshLib/ElementCoordinatesMappingLocal.cpp b/MeshLib/ElementCoordinatesMappingLocal.cpp
index 186747912ac..bac3131e117 100644
--- a/MeshLib/ElementCoordinatesMappingLocal.cpp
+++ b/MeshLib/ElementCoordinatesMappingLocal.cpp
@@ -42,8 +42,7 @@ MeshLib::RotationMatrix getRotationMatrixToGlobal(
     if (element_dimension == 1)
     {
         Eigen::Vector3d const xx =
-            (Eigen::Map<Eigen::Vector3d const>(points[1].data()) -
-             Eigen::Map<Eigen::Vector3d const>(points[0].data()))
+            (points[1].asEigenVector3d() - points[0].asEigenVector3d())
                 .normalized();
         if (global_dim == 2)
         {
-- 
GitLab