diff --git a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp index 2fc8fc8b16e43b7208672b6acc382a5cfa1ed960..61d97cbca6b4910fb3a7f55e8e10f733793712ef 100644 --- a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp +++ b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp @@ -23,6 +23,7 @@ #include "GeoLib/AABB.h" #include "GeoLib/Grid.h" +#include "MeshLib/MeshEnums.h" #include "MeshLib/Mesh.h" #include "MeshLib/Node.h" #include "MeshLib/Elements/Element.h" @@ -85,6 +86,9 @@ void Mesh2MeshPropertyInterpolation::interpolatePropertiesForMesh(Mesh *dest_mes const std::size_t n_dest_elements(dest_elements.size()); 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 const GeoLib::AABB elem_aabb(dest_elements[k]->getNodes(), dest_elements[k]->getNodes()+dest_elements[k]->getNumberOfBaseNodes());