From: vsr Date: Tue, 19 Mar 2013 16:30:57 +0000 (+0000) Subject: Merge from V6_main 19/03/2013 X-Git-Tag: mergefrom_V6_main_19Mar13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a00c4c4deba3a403fe64e71ba3e15c13ca12b07;p=modules%2Fvisu.git Merge from V6_main 19/03/2013 --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index df3107cb..2f9e8f1d 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -18,7 +18,6 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// // VISU OBJECT : interactive object for VISU entities implementation // File : VISU_MedConvertor.cxx @@ -41,6 +40,8 @@ #define NO_CAS_CATCH #endif +#include + #include #ifdef NO_CAS_CATCH @@ -1436,9 +1437,11 @@ VISU_MedConvertor TInt aNbMeshes = myMed->GetNbMeshes(); VISU::TMeshMap& aMeshMap = myMeshMap; + bool isDescConn = false; // Mantis issue 0020483 + INITMSG(MYDEBUG,"BuildEntities aNbMeshes = "<myEntityInfo = anEntityInfo; // Check connectivity (Mantis issue 0020483) - { - bool isDescConn = false; + if (!isDescConn) { + NCollection_Map aDescendingEntitiesMap; MED::TEntityInfo aEntityInfoDesc = myMed->GetEntityInfo(aMeshInfo, MED::eDESC); MED::TEntityInfo::iterator anEntityIterDesc = aEntityInfoDesc.begin(); - for (; anEntityIterDesc != aEntityInfoDesc.end() && !isDescConn; anEntityIterDesc++) { + //for (; anEntityIterDesc != aEntityInfoDesc.end() && !isDescConn; anEntityIterDesc++) { + for (; anEntityIterDesc != aEntityInfoDesc.end(); anEntityIterDesc++) { const MED::EEntiteMaillage& anEntity = anEntityIterDesc->first; - if (anEntity != MED::eNOEUD) isDescConn = true; + aDescendingEntitiesMap.Add(anEntity); + //if (anEntity != MED::eNOEUD) isDescConn = true; + } + MED::TEntityInfo aEntityInfo = myMed->GetEntityInfo(aMeshInfo, MED::eNOD); + MED::TEntityInfo::iterator anEntityIter = aEntityInfo.begin(); + for (; anEntityIter != aEntityInfo.end(); anEntityIter++) { + const MED::EEntiteMaillage& anEntity = anEntityIter->first; + aDescendingEntitiesMap.Remove(anEntity); } - if (isDescConn) - INFOS("There are some elements in descending connectivity in med file. They were not read !!!"); + if (aDescendingEntitiesMap.Extent()) isDescConn = true; } #ifndef _DEXCEPT_ @@ -1544,7 +1554,11 @@ VISU_MedConvertor MSG(MYDEBUG,"Unknown exception !!!"); } #endif - } + } + + // Mantis issue 0020483 + if (isDescConn) + INFOS("There are some elements in descending connectivity in med file. They were not read !!!"); return this; }