return anObj
## Explode a shape on sub-shapes of a given type.
- # Sub-shapes will be sorted by coordinates of their gravity centers.
+ # Sub-shapes will be sorted taking into account their gravity centers,
+ # to provide stable order of sub-shapes.
# If the shape itself matches the type, it is also returned.
# @param aShape Shape to be exploded.
# @param aType Type of sub-shapes to be retrieved (see ShapeType())
def SubShapeAllSortedCentres(self, aShape, aType, theName=None):
"""
Explode a shape on sub-shapes of a given type.
- Sub-shapes will be sorted by coordinates of their gravity centers.
+ Sub-shapes will be sorted taking into account their gravity centers,
+ to provide stable order of sub-shapes.
If the shape itself matches the type, it is also returned.
Parameters:
return ListObj
## Explode a shape on sub-shapes of a given type.
- # Sub-shapes will be sorted by coordinates of their gravity centers.
+ # Sub-shapes will be sorted taking into account their gravity centers,
+ # to provide stable order of sub-shapes.
# @param aShape Shape to be exploded.
# @param aType Type of sub-shapes to be retrieved (see ShapeType())
# @return List of IDs of sub-shapes.
def SubShapeAllSortedCentresIDs(self, aShape, aType):
"""
Explode a shape on sub-shapes of a given type.
- Sub-shapes will be sorted by coordinates of their gravity centers.
+ Sub-shapes will be sorted taking into account their gravity centers,
+ to provide stable order of sub-shapes.
Parameters:
aShape Shape to be exploded.