diff --git a/MeshLib/MeshSearch/MeshElementGrid.cpp b/MeshLib/MeshSearch/MeshElementGrid.cpp index 87fc85d98b78bfe3721285b03de3aa3e8593ea5b..83ac2147a640d31b2a1da11ac8ee1d2c7924217d 100644 --- a/MeshLib/MeshSearch/MeshElementGrid.cpp +++ b/MeshLib/MeshSearch/MeshElementGrid.cpp @@ -100,6 +100,16 @@ MeshElementGrid::MeshElementGrid(MeshLib::Mesh const& sfc_mesh) : sortElementsInGridCells(sfc_mesh); } +MathLib::Point3d const& MeshElementGrid::getMinPoint() const +{ + return _aabb.getMinPoint(); +} + +MathLib::Point3d const& MeshElementGrid::getMaxPoint() const +{ + return _aabb.getMaxPoint(); +} + void MeshElementGrid::sortElementsInGridCells(MeshLib::Mesh const& sfc_mesh) { for (auto const element : sfc_mesh.getElements()) { diff --git a/MeshLib/MeshSearch/MeshElementGrid.h b/MeshLib/MeshSearch/MeshElementGrid.h index 9b260b719f9588299639fa3b3fc26c4ff937c4d0..06105270082ea8f4fe069d4be4d0826c9c426cc3 100644 --- a/MeshLib/MeshSearch/MeshElementGrid.h +++ b/MeshLib/MeshSearch/MeshElementGrid.h @@ -72,6 +72,12 @@ public: return elements_vec; } + /// Returns the min point of the internal AABB. The method is a wrapper for + /// GeoLib::AABB::getMinPoint(). + MathLib::Point3d const& getMinPoint() const; + /// Returns the max point of the internal AABB. The method is a wrapper for + /// AABB::getMaxPoint(). + MathLib::Point3d const& getMaxPoint() const; private: void sortElementsInGridCells(MeshLib::Mesh const& sfc_mesh);