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

[MeL/MS] Access to min and max pnt of ElementGrid.

parent 14699e97
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
......@@ -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);
......
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