mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-26 01:00:48 +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;
|
TColStd_MapOfInteger aCurrentSet;
|
||||||
for (ibl = 1; ibl <= nbBlocks; ibl++) {
|
for (ibl = 1; ibl <= nbBlocks; ibl++) {
|
||||||
if (!aProcessedMap.Contains(ibl)) {
|
if (!aProcessedMap.Contains(ibl)) {
|
||||||
|
aCurrentSet.Clear();
|
||||||
FindConnected(ibl, aRelations, aProcessedMap, aCurrentSet);
|
FindConnected(ibl, aRelations, aProcessedMap, aCurrentSet);
|
||||||
if (aCurrentSet.Extent() > aLargestSet.Extent()) {
|
if (aCurrentSet.Extent() > aLargestSet.Extent()) {
|
||||||
aLargestSet = aCurrentSet;
|
aLargestSet = aCurrentSet;
|
||||||
@ -2409,6 +2410,7 @@ Standard_Boolean GEOMImpl_IBlocksOperations::CheckCompoundOfBlocks
|
|||||||
TColStd_MapOfInteger aCurrentSet;
|
TColStd_MapOfInteger aCurrentSet;
|
||||||
for (ibl = 1; ibl <= nbBlocks; ibl++) {
|
for (ibl = 1; ibl <= nbBlocks; ibl++) {
|
||||||
if (!aProcessedMap.Contains(ibl)) {
|
if (!aProcessedMap.Contains(ibl)) {
|
||||||
|
aCurrentSet.Clear();
|
||||||
FindConnected(ibl, aRelations, aProcessedMap, aCurrentSet);
|
FindConnected(ibl, aRelations, aProcessedMap, aCurrentSet);
|
||||||
if (aCurrentSet.Extent() > aLargestSet.Extent()) {
|
if (aCurrentSet.Extent() > aLargestSet.Extent()) {
|
||||||
aLargestSet = aCurrentSet;
|
aLargestSet = aCurrentSet;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user