From: ageay Date: Mon, 20 Feb 2012 16:21:50 +0000 (+0000) Subject: Correction of bug on buildDescendingConnectivity2 on 3D mesh with shared faces. X-Git-Tag: V6_main_FINAL~838 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e72a2fe1ee7bf3a2fddc5c2c41301471ad97d8b;p=tools%2Fmedcoupling.git Correction of bug on buildDescendingConnectivity2 on 3D mesh with shared faces. --- diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 4c1ea74dd..f57dcab21 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -438,6 +438,9 @@ namespace INTERP_KERNEL if(it==tmp.begin()) return true; if(it!=tmp.end()) + return _dim!=1; + std::vector::reverse_iterator it2=std::search(tmp.rbegin(),tmp.rend(),conn2,conn2+lgth); + if(it2!=tmp.rend()) return false; throw INTERP_KERNEL::Exception("CellModel::getOrientationStatus : Request of orientation status of non equal connectively cells !"); }