Functions | |
| 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 | |
| GetSubShapeID (self, aShape, aSubShape) | |
| Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape | |
| GetSubShapesIDs (self, aShape, aSubShapes) | |
| Obtain unique IDs of sub-shapes aSubShapes inside aShape This function is provided for performance purpose. | |
| 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(), and GEOM_Gen.AddSubShape().
| 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, and geomBuilder.RaiseIfFailed().
| 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.RaiseIfFailed(), and geomBuilder.ShapesOp.