Skip to content
Snippets Groups Projects
Commit db795745 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MeL] Substitute MaL::Vector3 by Eigen::Vector3d.

parent 3cd00930
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "CellRule.h" #include "CellRule.h"
#include "MathLib/Vector3.h"
#include "MeshLib/Node.h" #include "MeshLib/Node.h"
#include "Element.h" #include "Element.h"
#include "FaceRule.h" #include "FaceRule.h"
...@@ -19,12 +18,12 @@ namespace MeshLib { ...@@ -19,12 +18,12 @@ namespace MeshLib {
bool CellRule::testElementNodeOrder(const Element* e) bool CellRule::testElementNodeOrder(const Element* e)
{ {
const MathLib::Vector3 c(getCenterOfGravity(*e)); Eigen::Vector3d const cc =
Eigen::Vector3d const cc = Eigen::Map<Eigen::Vector3d const>(c.getCoords()); Eigen::Map<Eigen::Vector3d const>(getCenterOfGravity(*e).getCoords());
const unsigned nFaces (e->getNumberOfFaces()); const unsigned nFaces(e->getNumberOfFaces());
for (unsigned j=0; j<nFaces; ++j) 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 // 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 // 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 // type would be used for checking twice and one wouldn't be checked at
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment