SALOME documentation central
Function Documentation
def geompy.SubShapeAll |
( |
|
self, |
|
|
|
aShape, |
|
|
|
aType | |
|
) |
| | |
Explode a shape on subshapes of a given type.
- Parameters:
-
| aShape | Shape to be exploded. |
| aType | Type of sub-shapes to be retrieved. |
- Returns:
- List of sub-shapes of type theShapeType, contained in theShape.
Example
def geompy.SubShapeAllIDs |
( |
|
self, |
|
|
|
aShape, |
|
|
|
aType | |
|
) |
| | |
Explode a shape on subshapes of a given type.
- Parameters:
-
| aShape | Shape to be exploded. |
| aType | Type of sub-shapes to be retrieved. |
- Returns:
- List of IDs of sub-shapes.
Example
def geompy.SubShapeAllSorted |
( |
|
self, |
|
|
|
aShape, |
|
|
|
aType | |
|
) |
| | |
Explode a shape on subshapes of a given type.
Sub-shapes will be sorted by coordinates of their gravity centers.
- Parameters:
-
| aShape | Shape to be exploded. |
| aType | Type of sub-shapes to be retrieved. |
- Returns:
- List of sub-shapes of type theShapeType, contained in theShape.
Example
def geompy.SubShapeAllSortedIDs |
( |
|
self, |
|
|
|
aShape, |
|
|
|
aType | |
|
) |
| | |
Explode a shape on subshapes of a given type.
Sub-shapes will be sorted by coordinates of their gravity centers.
- Parameters:
-
| aShape | Shape to be exploded. |
| aType | Type of sub-shapes to be retrieved. |
- Returns:
- List of IDs of sub-shapes.
Example
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]
Example
def geompy.SubShapeSorted |
( |
|
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]
Example
Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS