From: eap Date: Thu, 1 Oct 2009 05:33:36 +0000 (+0000) Subject: 0020441: [CEA 349] P1P1 barycentric interpolators X-Git-Tag: V5_1_main_FINAL~329 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=adb2c8c62a531eb51c77a76126c5eaab13325906;p=tools%2Fmedcoupling.git 0020441: [CEA 349] P1P1 barycentric interpolators do not call intersectCells() if no source cells found - intersector->intersectCells(targetIdx,intersectElems,result); + if ( !intersectElems.empty() ) + intersector->intersectCells(targetIdx,intersectElems,result); --- diff --git a/src/INTERP_KERNEL/Interpolation3D.txx b/src/INTERP_KERNEL/Interpolation3D.txx index d31566961..2528b0e73 100644 --- a/src/INTERP_KERNEL/Interpolation3D.txx +++ b/src/INTERP_KERNEL/Interpolation3D.txx @@ -299,7 +299,8 @@ namespace INTERP_KERNEL tree.getIntersectingElems(targetBox, intersectElems); - intersector->intersectCells(targetIdx,intersectElems,result); + if ( !intersectElems.empty() ) + intersector->intersectCells(targetIdx,intersectElems,result); } delete [] bboxes;