From db795745efe31870f0b384e660b4c5c78b220e43 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 24 Dec 2020 09:48:03 +0100 Subject: [PATCH] [MeL] Substitute MaL::Vector3 by Eigen::Vector3d. --- MeshLib/Elements/CellRule.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/MeshLib/Elements/CellRule.cpp b/MeshLib/Elements/CellRule.cpp index 3e5fe16fb9d..2ec6f945acb 100644 --- a/MeshLib/Elements/CellRule.cpp +++ b/MeshLib/Elements/CellRule.cpp @@ -10,7 +10,6 @@ #include "CellRule.h" -#include "MathLib/Vector3.h" #include "MeshLib/Node.h" #include "Element.h" #include "FaceRule.h" @@ -19,12 +18,12 @@ namespace MeshLib { bool CellRule::testElementNodeOrder(const Element* e) { - const MathLib::Vector3 c(getCenterOfGravity(*e)); - Eigen::Vector3d const cc = Eigen::Map<Eigen::Vector3d const>(c.getCoords()); - const unsigned nFaces (e->getNumberOfFaces()); - for (unsigned j=0; j<nFaces; ++j) + Eigen::Vector3d const cc = + Eigen::Map<Eigen::Vector3d const>(getCenterOfGravity(*e).getCoords()); + const unsigned nFaces(e->getNumberOfFaces()); + for (unsigned j = 0; j < nFaces; ++j) { - MeshLib::Element const*const face (e->getFace(j)); + MeshLib::Element const* const face(e->getFace(j)); // Node 1 is checked below because that way all nodes are used for the test // at some point, while for node 0 at least one node in every element // type would be used for checking twice and one wouldn't be checked at -- GitLab