-// Copyright (C) 2009-2012 OPEN CASCADE
+// Copyright (C) 2009-2013 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
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