Functions | |
def | geompy.GetExistingSubObjects |
Get all sub-shapes and groups of theShape, that were created already by any other methods. | |
def | geompy.GetGroups |
Get all groups of theShape, that were created already by any other methods. | |
def | geompy.SubShapeAll |
Explode a shape on sub-shapes of a given type. | |
def | geompy.SubShapeAllIDs |
Explode a shape on sub-shapes of a given type. | |
def | geompy.SubShape |
Obtain a compound of sub-shapes of aShape, selected by they indices in list of all sub-shapes of type aType. | |
def | geompy.SubShapeAllSortedCentres |
Explode a shape on sub-shapes of a given type. | |
def | geompy.SubShapeAllSortedCentresIDs |
Explode a shape on sub-shapes of a given type. | |
def | geompy.SubShapeSortedCentres |
Obtain a compound of sub-shapes of aShape, selected by they indices in sorted list of all sub-shapes of type aType. | |
def | geompy.ExtractShapes |
Extract shapes (excluding the main shape) of given type. | |
def | geompy.SubShapes |
Get a set of sub-shapes defined by their unique IDs inside aShape |
def geompy.GetExistingSubObjects | ( | self, | |
theShape, | |||
theGroupsOnly = False |
|||
) |
Get all sub-shapes and groups of theShape, that were created already by any other methods.
theShape | Any shape. |
theGroupsOnly | If this parameter is TRUE, only groups will be returned, else all found sub-shapes and groups. |
References geompy.RaiseIfFailed().
def geompy.GetGroups | ( | self, | |
theShape | |||
) |
Get all groups of theShape, that were created already by any other methods.
theShape | Any shape. |
References geompy.RaiseIfFailed().
def geompy.SubShapeAll | ( | self, | |
aShape, | |||
aType | |||
) |
Explode a shape on sub-shapes of a given type.
If the shape itself matches the type, it is also returned.
aShape | Shape to be exploded. |
aType | Type of sub-shapes to be retrieved (see ShapeType()) |
References geompy.RaiseIfFailed().
def geompy.SubShapeAllIDs | ( | self, | |
aShape, | |||
aType | |||
) |
Explode a shape on sub-shapes of a given type.
aShape | Shape to be exploded. |
aType | Type of sub-shapes to be retrieved (see ShapeType()) |
References geompy.RaiseIfFailed().
def geompy.SubShape | ( | self, | |
aShape, | |||
aType, | |||
ListOfInd | |||
) |
Obtain a compound of sub-shapes of aShape, selected by they indices in list of all sub-shapes of type aType.
Each index is in range [1, Nb_Sub-Shapes_Of_Given_Type]
aShape | Shape to get sub-shape of. |
ListOfInd | List of sub-shapes indices. |
aType | Type of sub-shapes to be retrieved (see ShapeType()) |
def geompy.SubShapeAllSortedCentres | ( | self, | |
aShape, | |||
aType | |||
) |
Explode a shape on sub-shapes of a given type.
Sub-shapes will be sorted by coordinates of their gravity centers. If the shape itself matches the type, it is also returned.
aShape | Shape to be exploded. |
aType | Type of sub-shapes to be retrieved (see ShapeType()) |
References geompy.RaiseIfFailed().
def geompy.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.
aShape | Shape to be exploded. |
aType | Type of sub-shapes to be retrieved (see ShapeType()) |
References geompy.RaiseIfFailed().
def geompy.SubShapeSortedCentres | ( | self, | |
aShape, | |||
aType, | |||
ListOfInd | |||
) |
Obtain a compound of sub-shapes of aShape, selected by they indices in sorted list of all sub-shapes of type aType.
Each index is in range [1, Nb_Sub-Shapes_Of_Given_Type]
aShape | Shape to get sub-shape of. |
ListOfInd | List of sub-shapes indices. |
aType | Type of sub-shapes to be retrieved (see ShapeType()) |
def geompy.ExtractShapes | ( | self, | |
aShape, | |||
aType, | |||
isSorted = False |
|||
) |
Extract shapes (excluding the main shape) of given type.
aShape | The shape. |
aType | The shape type (see ShapeType()) |
isSorted | Boolean flag to switch sorting on/off. |
References geompy.RaiseIfFailed().
def geompy.SubShapes | ( | self, | |
aShape, | |||
anIDs | |||
) |
Get a set of sub-shapes defined by their unique IDs inside aShape
aShape | Main shape. |
anIDs | List of unique IDs of sub-shapes inside aShape. |
References geompy.RaiseIfFailed().