mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-05 03:47:46 +08:00
Second iteration of fixing regressions. Fixed issue with loops and incorrect shell created. #584 affected some tests which were not updated on time. Now all test cases are passed.
This commit is contained in:
@@ -269,7 +269,25 @@ static NCollection_List<TopTools_SequenceOfShape> GetConnectedFaceGroups(
|
||||
}
|
||||
}
|
||||
|
||||
aConnectedGroups.Append(aConnectedGroup);
|
||||
// Insert in sorted order (largest groups first)
|
||||
Standard_Boolean anIsInserted = Standard_False;
|
||||
|
||||
for (NCollection_List<TopTools_SequenceOfShape>::Iterator anIter(aConnectedGroups);
|
||||
anIter.More();
|
||||
anIter.Next())
|
||||
{
|
||||
if (aConnectedGroup.Length() > anIter.Value().Length())
|
||||
{
|
||||
aConnectedGroups.InsertBefore(aConnectedGroup, anIter);
|
||||
anIsInserted = Standard_True;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!anIsInserted)
|
||||
{
|
||||
aConnectedGroups.Append(aConnectedGroup);
|
||||
}
|
||||
}
|
||||
|
||||
return aConnectedGroups;
|
||||
|
||||
Reference in New Issue
Block a user