diff --git a/MeshLib/CoordinateSystem.cpp b/MeshLib/CoordinateSystem.cpp index ec26b6adfb57ef6deb446ced1db1d6fe4edaf481..83ace51cd3e83e0541254120285549289e88e340 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 8bad010138a3c5c6b856bb1928607215578a4cd9..005111e26976f457b3f94abb70850cdf18bce1dc 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 {