]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix CheckCompoundOfBlocks(). Now it reports not connected blocks, if any.
authorjfa <jfa@opencascade.com>
Fri, 14 Jan 2005 08:49:29 +0000 (08:49 +0000)
committerjfa <jfa@opencascade.com>
Fri, 14 Jan 2005 08:49:29 +0000 (08:49 +0000)
src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx

index 9c9409a08a16cd0699a734a257198e3988f6d73f..1f433c62215c7b1cd2aeec1c1dcd40ff93bda01b 100644 (file)
@@ -2177,6 +2177,7 @@ Standard_Boolean GEOMImpl_IBlocksOperations::CheckCompoundOfBlocksOld
   TColStd_MapOfInteger aCurrentSet;
   for (ibl = 1; ibl <= nbBlocks; ibl++) {
     if (!aProcessedMap.Contains(ibl)) {
+      aCurrentSet.Clear();
       FindConnected(ibl, aRelations, aProcessedMap, aCurrentSet);
       if (aCurrentSet.Extent() > aLargestSet.Extent()) {
         aLargestSet = aCurrentSet;
@@ -2409,6 +2410,7 @@ Standard_Boolean GEOMImpl_IBlocksOperations::CheckCompoundOfBlocks
   TColStd_MapOfInteger aCurrentSet;
   for (ibl = 1; ibl <= nbBlocks; ibl++) {
     if (!aProcessedMap.Contains(ibl)) {
+      aCurrentSet.Clear();
       FindConnected(ibl, aRelations, aProcessedMap, aCurrentSet);
       if (aCurrentSet.Extent() > aLargestSet.Extent()) {
         aLargestSet = aCurrentSet;