do not call intersectCells() if no source cells found
- intersector->intersectCells(targetIdx,intersectElems,result);
+ if ( !intersectElems.empty() )
+ intersector->intersectCells(targetIdx,intersectElems,result);
tree.getIntersectingElems(targetBox, intersectElems);
- intersector->intersectCells(targetIdx,intersectElems,result);
+ if ( !intersectElems.empty() )
+ intersector->intersectCells(targetIdx,intersectElems,result);
}
delete [] bboxes;