-// Copyright (C) 2009-2012 OPEN CASCADE
+// Copyright (C) 2009-2014 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
bool doItersect = true;
for ( int j = 0; j < dim && doItersect; ++j )
doItersect =
- bb[j*2] < src_coords[j][ src_nb_coords[0]-1 ] - eps &&
+ bb[j*2] < src_coords[j][ src_nb_coords[j]-1 ] - eps &&
bb[j*2+1] > src_coords[j][0] + eps;
if ( !doItersect )
continue; // no intersection