Commit 40b61fd5 authored by Tom Fischer's avatar Tom Fischer
Browse files

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

Explanation is here: https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html
parent 4edddb1b
......@@ -17,6 +17,7 @@
#include <QList>
#include <QListWidgetItem>
#include <algorithm>
#include<Eigen/StdVector>
#include "Applications/DataExplorer/Base/OGSError.h"
#include "Applications/DataHolderLib/Project.h"
......@@ -142,9 +143,8 @@ void MeshElementRemovalDialog::accept()
(aabb_edits[4]) ? this->zMinEdit->text().toDouble() : (minAABB[2]);
maxAABB[2] =
(aabb_edits[5]) ? this->zMaxEdit->text().toDouble() : (maxAABB[2]);
std::vector<Eigen::Vector3d> extent;
extent.push_back(minAABB);
extent.push_back(maxAABB);
std::vector<Eigen::Vector3d, Eigen::aligned_allocator<Eigen::Vector3d>>
extent{minAABB, maxAABB};
const GeoLib::AABB updated_aabb(extent.begin(), extent.end());
ex.searchByBoundingBox(updated_aabb);
anything_checked = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment