Functions | |
def | GetSubShape |
Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape More... | |
def | GetSubShapeID |
Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape More... | |
def | GetSubShapesIDs |
Obtain unique IDs of sub-shapes aSubShapes inside aShape This function is provided for performance purpose. More... | |
def GetSubShape | ( | self, | |
aShape, | |||
ListOfID, | |||
theName = None |
|||
) |
Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape
aShape | Shape to get sub-shape of. |
ListOfID | List of sub-shapes indices. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), GEOM_Gen.AddSubShape(), and geomBuilder.ManageTransactions().
def GetSubShapeID | ( | self, | |
aShape, | |||
aSubShape | |||
) |
Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape
aShape | Shape to get sub-shape of. |
aSubShape | Sub-shapes of aShape. |
References geomBuilder.LocalOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetSubShapesIDs | ( | self, | |
aShape, | |||
aSubShapes | |||
) |
Obtain unique IDs of sub-shapes aSubShapes inside aShape This function is provided for performance purpose.
The complexity is O(n) with n the number of subobjects of aShape
aShape | Shape to get sub-shape of. |
aSubShapes | Sub-shapes of aShape. |
References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.