From 7d3ca9903a10e89217e661b9e6240d18893a4aeb Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 14 Jan 2005 08:49:29 +0000 Subject: [PATCH] Fix CheckCompoundOfBlocks(). Now it reports not connected blocks, if any. --- src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx b/src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx index 9c9409a08..1f433c622 100644 --- a/src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx @@ -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; -- 2.39.2