From f2c8725ae9f80a6b7960f3a37f24711f7e86d61f Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 10 Aug 2016 09:49:53 +0200
Subject: [PATCH] [MeL/ME] Handle MeshLib::Line case.

---
 MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp
index 2fc8fc8b16e..61d97cbca6b 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());
 
-- 
GitLab