Back to index

salome-geom  6.5.0
Functions
Access to sub-shapes by their unique IDs inside the main shape
Creating Advanced Geometrical Objects
Collaboration diagram for Access to sub-shapes by their unique IDs inside the main shape:

Functions

def geompyDC.geompyDC.GetSubShape
 Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape
def geompyDC.geompyDC.GetSubShapeID
 Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape

Function Documentation

def geompyDC.geompyDC.GetSubShape (   self,
  aShape,
  ListOfID 
)

Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape

Parameters:
aShapeShape to get sub-shape of.
ListOfIDList of sub-shapes indices.
Returns:
Found sub-shape.

Example

Obtain a composite sub-shape of aShape, composed from sub-shapes
of aShape, selected by their unique IDs inside aShape

Parameters:
   aShape Shape to get sub-shape of.
   ListOfID List of sub-shapes indices.

Returns:
    Found sub-shape.

Definition at line 3911 of file geompyDC.py.

03911 
03912         def GetSubShape(self, aShape, ListOfID):
03913             """
03914             Obtain a composite sub-shape of aShape, composed from sub-shapes
03915             of aShape, selected by their unique IDs inside aShape
03916 
03917             Parameters:
03918                aShape Shape to get sub-shape of.
03919                ListOfID List of sub-shapes indices.
03920 
03921             Returns:
03922                 Found sub-shape.
03923             """
03924             # Example: see GEOM_TestAll.py
03925             anObj = self.AddSubShape(aShape,ListOfID)
03926             return anObj

Here is the call graph for this function:

Here is the caller graph for this function:

def geompyDC.geompyDC.GetSubShapeID (   self,
  aShape,
  aSubShape 
)

Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape

Parameters:
aShapeShape to get sub-shape of.
aSubShapeSub-shapes of aShape.
Returns:
ID of found sub-shape.

Example

Obtain unique ID of sub-shape aSubShape inside aShape
of aShape, selected by their unique IDs inside aShape

Parameters:
   aShape Shape to get sub-shape of.
   aSubShape Sub-shapes of aShape.

Returns:
   ID of found sub-shape.

Definition at line 3934 of file geompyDC.py.

03934 
03935         def GetSubShapeID(self, aShape, aSubShape):
03936             """
03937             Obtain unique ID of sub-shape aSubShape inside aShape
03938             of aShape, selected by their unique IDs inside aShape
03939 
03940             Parameters:
03941                aShape Shape to get sub-shape of.
03942                aSubShape Sub-shapes of aShape.
03943 
03944             Returns:
03945                ID of found sub-shape.
03946             """
03947             # Example: see GEOM_TestAll.py
03948             anID = self.LocalOp.GetSubShapeIndex(aShape, aSubShape)
03949             RaiseIfFailed("GetSubShapeIndex", self.LocalOp)
03950             return anID

Here is the call graph for this function: