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

[A/DE/DataView] Use Eigen aligned allocator for stl container.

parent 4edddb1b
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <QList> #include <QList>
#include <QListWidgetItem> #include <QListWidgetItem>
#include <algorithm> #include <algorithm>
#include<Eigen/StdVector>
#include "Applications/DataExplorer/Base/OGSError.h" #include "Applications/DataExplorer/Base/OGSError.h"
#include "Applications/DataHolderLib/Project.h" #include "Applications/DataHolderLib/Project.h"
...@@ -142,9 +143,8 @@ void MeshElementRemovalDialog::accept() ...@@ -142,9 +143,8 @@ void MeshElementRemovalDialog::accept()
(aabb_edits[4]) ? this->zMinEdit->text().toDouble() : (minAABB[2]); (aabb_edits[4]) ? this->zMinEdit->text().toDouble() : (minAABB[2]);
maxAABB[2] = maxAABB[2] =
(aabb_edits[5]) ? this->zMaxEdit->text().toDouble() : (maxAABB[2]); (aabb_edits[5]) ? this->zMaxEdit->text().toDouble() : (maxAABB[2]);
std::vector<Eigen::Vector3d> extent; std::vector<Eigen::Vector3d, Eigen::aligned_allocator<Eigen::Vector3d>>
extent.push_back(minAABB); extent{minAABB, maxAABB};
extent.push_back(maxAABB);
const GeoLib::AABB updated_aabb(extent.begin(), extent.end()); const GeoLib::AABB updated_aabb(extent.begin(), extent.end());
ex.searchByBoundingBox(updated_aabb); ex.searchByBoundingBox(updated_aabb);
anything_checked = true; anything_checked = true;
......
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