mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-25 18:10:49 +05:00
Fix CheckCompoundOfBlocks(). Now it reports not connected blocks, if any.
This commit is contained in:
parent
a573caf5ce
commit
7d3ca9903a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user