From 9a0cc14fc8536cef21902c633e30c0f14be524e0 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Sat, 19 Dec 2020 16:51:15 +0100 Subject: [PATCH] [MeL] Remove Vector3 from CoordinateSystem. --- MeshLib/CoordinateSystem.cpp | 6 +++++- MeshLib/CoordinateSystem.h | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MeshLib/CoordinateSystem.cpp b/MeshLib/CoordinateSystem.cpp index ec26b6adfb5..83ace51cd3e 100644 --- a/MeshLib/CoordinateSystem.cpp +++ b/MeshLib/CoordinateSystem.cpp @@ -41,7 +41,11 @@ unsigned char CoordinateSystem::getCoordinateSystem(const GeoLib::AABB &bbox) co { unsigned char coords = 0; - const MathLib::Vector3 pt_diff(bbox.getMinPoint(), bbox.getMaxPoint()); + auto const bbox_min = + Eigen::Map<Eigen::Vector3d const>(bbox.getMinPoint().getCoords()); + auto const bbox_max = + Eigen::Map<Eigen::Vector3d const>(bbox.getMaxPoint().getCoords()); + Eigen::Vector3d const pt_diff = bbox_max - bbox_min; // The axis aligned bounding box is a from the right half-open interval. // Therefore, the difference between the particular coordinates of the diff --git a/MeshLib/CoordinateSystem.h b/MeshLib/CoordinateSystem.h index 8bad010138a..005111e2697 100644 --- a/MeshLib/CoordinateSystem.h +++ b/MeshLib/CoordinateSystem.h @@ -12,7 +12,6 @@ #include <cmath> #include "GeoLib/AABB.h" -#include "MathLib/Vector3.h" namespace MeshLib { -- GitLab