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

[MeL/ME] Handle MeshLib::Line case.

parent 1f026bf4
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "GeoLib/AABB.h" #include "GeoLib/AABB.h"
#include "GeoLib/Grid.h" #include "GeoLib/Grid.h"
#include "MeshLib/MeshEnums.h"
#include "MeshLib/Mesh.h" #include "MeshLib/Mesh.h"
#include "MeshLib/Node.h" #include "MeshLib/Node.h"
#include "MeshLib/Elements/Element.h" #include "MeshLib/Elements/Element.h"
...@@ -85,6 +86,9 @@ void Mesh2MeshPropertyInterpolation::interpolatePropertiesForMesh(Mesh *dest_mes ...@@ -85,6 +86,9 @@ void Mesh2MeshPropertyInterpolation::interpolatePropertiesForMesh(Mesh *dest_mes
const std::size_t n_dest_elements(dest_elements.size()); const std::size_t n_dest_elements(dest_elements.size());
for (std::size_t k(0); k<n_dest_elements; k++) for (std::size_t k(0); k<n_dest_elements; k++)
{ {
if (dest_elements[k]->getGeomType() == MeshElemType::LINE)
continue;
// compute axis aligned bounding box around the current element // compute axis aligned bounding box around the current element
const GeoLib::AABB elem_aabb(dest_elements[k]->getNodes(), dest_elements[k]->getNodes()+dest_elements[k]->getNumberOfBaseNodes()); const GeoLib::AABB elem_aabb(dest_elements[k]->getNodes(), dest_elements[k]->getNodes()+dest_elements[k]->getNumberOfBaseNodes());
......
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