}
}
- 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;
DATA : Faulties = 0 ( 0 ) Warnings = 0 ( 0 ) Summary = 0 ( 0 )
TPSTAT : Faulties = 0 ( 0 ) Warnings = 0 ( 1 ) Summary = 0 ( 1 )
CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) Solids = 0 ( 0 )
-NBSHAPES : Solid = 0 ( 0 ) Shell = 4 ( 4 ) Face = 13 ( 13 )
-STATSHAPE : Solid = 0 ( 0 ) Shell = 4 ( 4 ) Face = 13 ( 13 ) FreeWire = 0 ( 0 )
+NBSHAPES : Solid = 0 ( 0 ) Shell = 12 ( 12 ) Face = 13 ( 13 )
+STATSHAPE : Solid = 0 ( 0 ) Shell = 12 ( 12 ) Face = 13 ( 13 ) FreeWire = 0 ( 0 )
TOLERANCE : MaxTol = 0.004158901543 ( 0.004158901545 ) AvgTol = 0.001029524988 ( 0.001123851801 )
LABELS : N0Labels = 1 ( 1 ) N1Labels = 0 ( 0 ) N2Labels = 0 ( 0 ) TotalLabels = 1 ( 1 ) NameLabels = 1 ( 1 ) ColorLabels = 0 ( 0 ) LayerLabels = 0 ( 0 )
PROPS : Centroid = 0 ( 0 ) Volume = 0 ( 0 ) Area = 0 ( 0 )