Back to index

salome-geom  6.5.0
Functions
Access to sub-shapes by a criteria
Creating Advanced Geometrical Objects
Collaboration diagram for Access to sub-shapes by a criteria:

Functions

def geompyDC.geompyDC.GetFreeFacesIDs
 Retrieve all free faces from the given shape.
def geompyDC.geompyDC.GetSharedShapes
 Get all sub-shapes of theShape1 of the given type, shared with theShape2.
def geompyDC.geompyDC.GetSharedShapesMulti
 Get all sub-shapes, shared by all shapes in the list theShapes.
def geompyDC.geompyDC.GetShapesOnPlane
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnPlaneIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnPlaneWithLocation
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnPlaneWithLocationIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnCylinder
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnCylinderIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnCylinderWithLocation
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnCylinderWithLocationIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnSphere
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnSphereIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnQuadrangle
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnQuadrangleIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnBox
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnBoxIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnShape
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnShapeAsCompound
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetShapesOnShapeIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.
def geompyDC.geompyDC.GetInPlace
 Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.
def geompyDC.geompyDC.GetInPlaceByHistory
 Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.
def geompyDC.geompyDC.GetSame
 Get sub-shape of theShapeWhere, which is equal to theShapeWhat.
def geompyDC.geompyDC.GetSameIDs
 Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat.

Function Documentation

def geompyDC.geompyDC.GetFreeFacesIDs (   self,
  theShape 
)

Retrieve all free faces from the given shape.

Free face is a face, which is not shared between two shells of the shape.

Parameters:
theShapeShape to find free faces in.
Returns:
List of IDs of all free faces, contained in theShape.

Example

Retrieve all free faces from the given shape.
Free face is a face, which is not shared between two shells of the shape.

Parameters:
    theShape Shape to find free faces in.

Returns:
    List of IDs of all free faces, contained in theShape.

Definition at line 3156 of file geompyDC.py.

03156 
03157         def GetFreeFacesIDs(self,theShape):
03158             """
03159             Retrieve all free faces from the given shape.
03160             Free face is a face, which is not shared between two shells of the shape.
03161 
03162             Parameters:
03163                 theShape Shape to find free faces in.
03164 
03165             Returns:
03166                 List of IDs of all free faces, contained in theShape.
03167             """
03168             # Example: see GEOM_TestOthers.py
03169             anIDs = self.ShapesOp.GetFreeFacesIDs(theShape)
03170             RaiseIfFailed("GetFreeFacesIDs", self.ShapesOp)
03171             return anIDs

Here is the call graph for this function:

def geompyDC.geompyDC.GetInPlace (   self,
  theShapeWhere,
  theShapeWhat,
  isNewImplementation = False 
)

Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.

Parameters:
theShapeWhereShape to find sub-shapes of.
theShapeWhatShape, specifying what to find.
isNewImplementationimplementation of GetInPlace functionality (default = False, old alghorithm based on shape properties)
Returns:
Group of all found sub-shapes or a single found sub-shape.
Note:
This function has a restriction on argument shapes. If theShapeWhere has curved parts with significantly outstanding centres (i.e. the mass centre of a part is closer to theShapeWhat than to the part), such parts will not be found.
get_in_place_lost_part.png

Example

Get sub-shape(s) of theShapeWhere, which are
coincident with  theShapeWhat or could be a part of it.

Parameters:
    theShapeWhere Shape to find sub-shapes of.
    theShapeWhat Shape, specifying what to find.
    isNewImplementation Implementation of GetInPlace functionality
            (default = False, old alghorithm based on shape properties)

Returns:
    Group of all found sub-shapes or a single found sub-shape.

    
Note:
    This function has a restriction on argument shapes.
    If theShapeWhere has curved parts with significantly
    outstanding centres (i.e. the mass centre of a part is closer to
    theShapeWhat than to the part), such parts will not be found.

Definition at line 3783 of file geompyDC.py.

03783 
03784         def GetInPlace(self, theShapeWhere, theShapeWhat, isNewImplementation = False):
03785             """
03786             Get sub-shape(s) of theShapeWhere, which are
03787             coincident with  theShapeWhat or could be a part of it.
03788 
03789             Parameters:
03790                 theShapeWhere Shape to find sub-shapes of.
03791                 theShapeWhat Shape, specifying what to find.
03792                 isNewImplementation Implementation of GetInPlace functionality
03793                                     (default = False, old alghorithm based on shape properties)
03794 
03795             Returns:
03796                 Group of all found sub-shapes or a single found sub-shape.
03797 
03798                 
03799             Note:
03800                 This function has a restriction on argument shapes.
03801                 If theShapeWhere has curved parts with significantly
03802                 outstanding centres (i.e. the mass centre of a part is closer to
03803                 theShapeWhat than to the part), such parts will not be found.
03804             """
03805             # Example: see GEOM_TestOthers.py
03806             anObj = None
03807             if isNewImplementation:
03808                 anObj = self.ShapesOp.GetInPlace(theShapeWhere, theShapeWhat)
03809             else:
03810                 anObj = self.ShapesOp.GetInPlaceOld(theShapeWhere, theShapeWhat)
03811                 pass
03812             RaiseIfFailed("GetInPlace", self.ShapesOp)
03813             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetInPlaceByHistory (   self,
  theShapeWhere,
  theShapeWhat 
)

Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.

Implementation of this method is based on a saved history of an operation, produced theShapeWhere. The theShapeWhat must be among this operation's arguments (an argument shape or a sub-shape of an argument shape). The operation could be the Partition or one of boolean operations, performed on simple shapes (not on compounds).

Parameters:
theShapeWhereShape to find sub-shapes of.
theShapeWhatShape, specifying what to find (must be in the building history of the ShapeWhere).
Returns:
Group of all found sub-shapes or a single found sub-shape.

Example

Implementation of this method is based on a saved history of an operation,
produced theShapeWhere. The theShapeWhat must be among this operation's
arguments (an argument shape or a sub-shape of an argument shape).
The operation could be the Partition or one of boolean operations,
performed on simple shapes (not on compounds).

Parameters:
    theShapeWhere Shape to find sub-shapes of.
    theShapeWhat Shape, specifying what to find (must be in the
        building history of the ShapeWhere).

Returns:
    Group of all found sub-shapes or a single found sub-shape.

Definition at line 3829 of file geompyDC.py.

03829 
03830         def GetInPlaceByHistory(self, theShapeWhere, theShapeWhat):
03831             """
03832             Implementation of this method is based on a saved history of an operation,
03833             produced theShapeWhere. The theShapeWhat must be among this operation's
03834             arguments (an argument shape or a sub-shape of an argument shape).
03835             The operation could be the Partition or one of boolean operations,
03836             performed on simple shapes (not on compounds).
03837 
03838             Parameters:
03839                 theShapeWhere Shape to find sub-shapes of.
03840                 theShapeWhat Shape, specifying what to find (must be in the
03841                                 building history of the ShapeWhere).
03842 
03843             Returns:
03844                 Group of all found sub-shapes or a single found sub-shape.
03845             """
03846             # Example: see GEOM_TestOthers.py
03847             anObj = self.ShapesOp.GetInPlaceByHistory(theShapeWhere, theShapeWhat)
03848             RaiseIfFailed("GetInPlaceByHistory", self.ShapesOp)
03849             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetSame (   self,
  theShapeWhere,
  theShapeWhat 
)

Get sub-shape of theShapeWhere, which is equal to theShapeWhat.

Parameters:
theShapeWhereShape to find sub-shape of.
theShapeWhatShape, specifying what to find.
Returns:
New GEOM.GEOM_Object for found sub-shape.

Example

Get sub-shape of theShapeWhere, which is
equal to theShapeWhat.

Parameters:
    theShapeWhere Shape to find sub-shape of.
    theShapeWhat Shape, specifying what to find.

Returns:
    New GEOM.GEOM_Object for found sub-shape.

Definition at line 3857 of file geompyDC.py.

03857 
03858         def GetSame(self,theShapeWhere, theShapeWhat):
03859             """
03860             Get sub-shape of theShapeWhere, which is
03861             equal to theShapeWhat.
03862 
03863             Parameters:
03864                 theShapeWhere Shape to find sub-shape of.
03865                 theShapeWhat Shape, specifying what to find.
03866 
03867             Returns:
03868                 New GEOM.GEOM_Object for found sub-shape.
03869             """
03870             anObj = self.ShapesOp.GetSame(theShapeWhere, theShapeWhat)
03871             RaiseIfFailed("GetSame", self.ShapesOp)
03872             return anObj
03873 

Here is the call graph for this function:

def geompyDC.geompyDC.GetSameIDs (   self,
  theShapeWhere,
  theShapeWhat 
)

Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat.

Parameters:
theShapeWhereShape to find sub-shape of.
theShapeWhatShape, specifying what to find.
Returns:
List of all found sub-shapes indices.

Example

Get sub-shape indices of theShapeWhere, which is
equal to theShapeWhat.

Parameters:
    theShapeWhere Shape to find sub-shape of.
    theShapeWhat Shape, specifying what to find.

Returns:
    List of all found sub-shapes indices.

Definition at line 3881 of file geompyDC.py.

03881 
03882         def GetSameIDs(self,theShapeWhere, theShapeWhat):
03883             """
03884             Get sub-shape indices of theShapeWhere, which is
03885             equal to theShapeWhat.
03886 
03887             Parameters:
03888                 theShapeWhere Shape to find sub-shape of.
03889                 theShapeWhat Shape, specifying what to find.
03890 
03891             Returns:
03892                 List of all found sub-shapes indices.
03893             """
03894             anObj = self.ShapesOp.GetSameIDs(theShapeWhere, theShapeWhat)
03895             RaiseIfFailed("GetSameIDs", self.ShapesOp)
03896             return anObj
03897 

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnBox (   self,
  theBox,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter.

Parameters:
theBoxShape for relative comparing.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified theBox by the certain way, defined through theState parameter.

Parameters:
    theBox Shape for relative comparing.
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3628 of file geompyDC.py.

03628 
03629         def GetShapesOnBox(self, theBox, theShape, theShapeType, theState):
03630             """
03631             Find in theShape all sub-shapes of type theShapeType, situated relatively
03632             the specified theBox by the certain way, defined through theState parameter.
03633 
03634             Parameters:
03635                 theBox Shape for relative comparing.
03636                 theShape Shape to find sub-shapes of.
03637                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03638                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03639 
03640             Returns:
03641                 List of all found sub-shapes.
03642             """
03643             # Example: see GEOM_TestOthers.py
03644             aList = self.ShapesOp.GetShapesOnBox(theBox, theShape, theShapeType, theState)
03645             RaiseIfFailed("GetShapesOnBox", self.ShapesOp)
03646             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnBoxIDs (   self,
  theBox,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter.

Parameters:
theBoxShape for relative comparing.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified theBox by the certain way, defined through theState parameter.

Parameters:
    theBox Shape for relative comparing.
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3656 of file geompyDC.py.

03656 
03657         def GetShapesOnBoxIDs(self, theBox, theShape, theShapeType, theState):
03658             """
03659             Find in theShape all sub-shapes of type theShapeType, situated relatively
03660             the specified theBox by the certain way, defined through theState parameter.
03661 
03662             Parameters:
03663                 theBox Shape for relative comparing.
03664                 theShape Shape to find sub-shapes of.
03665                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03666                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03667 
03668             Returns:
03669                 List of all found sub-shapes indices.
03670             """
03671             # Example: see GEOM_TestOthers.py
03672             aList = self.ShapesOp.GetShapesOnBoxIDs(theBox, theShape, theShapeType, theState)
03673             RaiseIfFailed("GetShapesOnBoxIDs", self.ShapesOp)
03674             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnCylinder (   self,
  theShape,
  theShapeType,
  theAxis,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified cylinder by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAxis Vector (or line, or linear edge), specifying
axis of the cylinder to find shapes on.
    theRadius Radius of the cylinder to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3363 of file geompyDC.py.

03363 
03364         def GetShapesOnCylinder(self, theShape, theShapeType, theAxis, theRadius, theState):
03365             """
03366             Find in theShape all sub-shapes of type theShapeType, situated relatively
03367             the specified cylinder by the certain way, defined through theState parameter.
03368 
03369             Parameters:
03370                 theShape Shape to find sub-shapes of.
03371                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03372                 theAxis Vector (or line, or linear edge), specifying
03373                         axis of the cylinder to find shapes on.
03374                 theRadius Radius of the cylinder to find shapes on.
03375                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03376 
03377             Returns:
03378                 List of all found sub-shapes.
03379             """
03380             # Example: see GEOM_TestOthers.py
03381             aList = self.ShapesOp.GetShapesOnCylinder(theShape, theShapeType, theAxis, theRadius, theState)
03382             RaiseIfFailed("GetShapesOnCylinder", self.ShapesOp)
03383             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnCylinderIDs (   self,
  theShape,
  theShapeType,
  theAxis,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified cylinder by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAxis Vector (or line, or linear edge), specifying
axis of the cylinder to find shapes on.
    theRadius Radius of the cylinder to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3395 of file geompyDC.py.

03395 
03396         def GetShapesOnCylinderIDs(self, theShape, theShapeType, theAxis, theRadius, theState):
03397             """
03398             Find in theShape all sub-shapes of type theShapeType, situated relatively
03399             the specified cylinder by the certain way, defined through theState parameter.
03400 
03401             Parameters:
03402                 theShape Shape to find sub-shapes of.
03403                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03404                 theAxis Vector (or line, or linear edge), specifying
03405                         axis of the cylinder to find shapes on.
03406                 theRadius Radius of the cylinder to find shapes on.
03407                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03408 
03409             Returns:
03410                 List of all found sub-shapes indices.
03411             """
03412             # Example: see GEOM_TestOthers.py
03413             aList = self.ShapesOp.GetShapesOnCylinderIDs(theShape, theShapeType, theAxis, theRadius, theState)
03414             RaiseIfFailed("GetShapesOnCylinderIDs", self.ShapesOp)
03415             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnCylinderWithLocation (   self,
  theShape,
  theShapeType,
  theAxis,
  thePnt,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
thePntPoint specifying location of the bottom of the cylinder.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified cylinder by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAxis Vector (or line, or linear edge), specifying
axis of the cylinder to find shapes on.
    theRadius Radius of the cylinder to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3428 of file geompyDC.py.

03428 
03429         def GetShapesOnCylinderWithLocation(self, theShape, theShapeType, theAxis, thePnt, theRadius, theState):
03430             """
03431             Find in theShape all sub-shapes of type theShapeType, situated relatively
03432             the specified cylinder by the certain way, defined through theState parameter.
03433 
03434             Parameters:
03435                 theShape Shape to find sub-shapes of.
03436                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03437                 theAxis Vector (or line, or linear edge), specifying
03438                         axis of the cylinder to find shapes on.
03439                 theRadius Radius of the cylinder to find shapes on.
03440                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03441 
03442             Returns:
03443                 List of all found sub-shapes.
03444             """
03445             # Example: see GEOM_TestOthers.py
03446             aList = self.ShapesOp.GetShapesOnCylinderWithLocation(theShape, theShapeType, theAxis, thePnt, theRadius, theState)
03447             RaiseIfFailed("GetShapesOnCylinderWithLocation", self.ShapesOp)
03448             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnCylinderWithLocationIDs (   self,
  theShape,
  theShapeType,
  theAxis,
  thePnt,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
thePntPoint specifying location of the bottom of the cylinder.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified cylinder by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAxis Vector (or line, or linear edge), specifying
axis of the cylinder to find shapes on.
    theRadius Radius of the cylinder to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.            

Definition at line 3461 of file geompyDC.py.

03461 
03462         def GetShapesOnCylinderWithLocationIDs(self, theShape, theShapeType, theAxis, thePnt, theRadius, theState):
03463             """
03464             Find in theShape all sub-shapes of type theShapeType, situated relatively
03465             the specified cylinder by the certain way, defined through theState parameter.
03466 
03467             Parameters:
03468                 theShape Shape to find sub-shapes of.
03469                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03470                 theAxis Vector (or line, or linear edge), specifying
03471                         axis of the cylinder to find shapes on.
03472                 theRadius Radius of the cylinder to find shapes on.
03473                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03474 
03475             Returns:
03476                 List of all found sub-shapes indices.            
03477             """
03478             # Example: see GEOM_TestOthers.py
03479             aList = self.ShapesOp.GetShapesOnCylinderWithLocationIDs(theShape, theShapeType, theAxis, thePnt, theRadius, theState)
03480             RaiseIfFailed("GetShapesOnCylinderWithLocationIDs", self.ShapesOp)
03481             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnPlane (   self,
  theShape,
  theShapeType,
  theAx1,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified plane by the certain way,
defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAx1 Vector (or line, or linear edge), specifying normal
           direction and location of the plane to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3229 of file geompyDC.py.

03229 
03230         def GetShapesOnPlane(self,theShape, theShapeType, theAx1, theState):
03231             """
03232             Find in theShape all sub-shapes of type theShapeType,
03233             situated relatively the specified plane by the certain way,
03234             defined through theState parameter.
03235 
03236             Parameters:
03237                 theShape Shape to find sub-shapes of.
03238                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03239                 theAx1 Vector (or line, or linear edge), specifying normal
03240                        direction and location of the plane to find shapes on.
03241                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03242 
03243             Returns:
03244                 List of all found sub-shapes.
03245             """
03246             # Example: see GEOM_TestOthers.py
03247             aList = self.ShapesOp.GetShapesOnPlane(theShape, theShapeType, theAx1, theState)
03248             RaiseIfFailed("GetShapesOnPlane", self.ShapesOp)
03249             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnPlaneIDs (   self,
  theShape,
  theShapeType,
  theAx1,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified plane by the certain way,
defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAx1 Vector (or line, or linear edge), specifying normal
           direction and location of the plane to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3261 of file geompyDC.py.

03261 
03262         def GetShapesOnPlaneIDs(self,theShape, theShapeType, theAx1, theState):
03263             """
03264             Find in theShape all sub-shapes of type theShapeType,
03265             situated relatively the specified plane by the certain way,
03266             defined through theState parameter.
03267 
03268             Parameters:
03269                 theShape Shape to find sub-shapes of.
03270                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03271                 theAx1 Vector (or line, or linear edge), specifying normal
03272                        direction and location of the plane to find shapes on.
03273                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03274 
03275             Returns:
03276                 List of all found sub-shapes indices.
03277             """
03278             # Example: see GEOM_TestOthers.py
03279             aList = self.ShapesOp.GetShapesOnPlaneIDs(theShape, theShapeType, theAx1, theState)
03280             RaiseIfFailed("GetShapesOnPlaneIDs", self.ShapesOp)
03281             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnPlaneWithLocation (   self,
  theShape,
  theShapeType,
  theAx1,
  thePnt,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction of the plane to find shapes on.
thePntPoint specifying location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified plane by the certain way,
defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAx1 Vector (or line, or linear edge), specifying normal
           direction and location of the plane to find shapes on.
    thePnt Point specifying location of the plane to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3294 of file geompyDC.py.

03294 
03295         def GetShapesOnPlaneWithLocation(self, theShape, theShapeType, theAx1, thePnt, theState):
03296             """
03297             Find in theShape all sub-shapes of type theShapeType,
03298             situated relatively the specified plane by the certain way,
03299             defined through theState parameter.
03300 
03301             Parameters:
03302                 theShape Shape to find sub-shapes of.
03303                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03304                 theAx1 Vector (or line, or linear edge), specifying normal
03305                        direction and location of the plane to find shapes on.
03306                 thePnt Point specifying location of the plane to find shapes on.
03307                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03308 
03309             Returns:
03310                 List of all found sub-shapes.
03311             """
03312             # Example: see GEOM_TestOthers.py
03313             aList = self.ShapesOp.GetShapesOnPlaneWithLocation(theShape, theShapeType,
03314                                                                theAx1, thePnt, theState)
03315             RaiseIfFailed("GetShapesOnPlaneWithLocation", self.ShapesOp)
03316             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnPlaneWithLocationIDs (   self,
  theShape,
  theShapeType,
  theAx1,
  thePnt,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction of the plane to find shapes on.
thePntPoint specifying location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified plane by the certain way,
defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theAx1 Vector (or line, or linear edge), specifying normal
           direction and location of the plane to find shapes on.
    thePnt Point specifying location of the plane to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3329 of file geompyDC.py.

03329 
03330         def GetShapesOnPlaneWithLocationIDs(self, theShape, theShapeType, theAx1, thePnt, theState):
03331             """
03332             Find in theShape all sub-shapes of type theShapeType,
03333             situated relatively the specified plane by the certain way,
03334             defined through theState parameter.
03335 
03336             Parameters:
03337                 theShape Shape to find sub-shapes of.
03338                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03339                 theAx1 Vector (or line, or linear edge), specifying normal
03340                        direction and location of the plane to find shapes on.
03341                 thePnt Point specifying location of the plane to find shapes on.
03342                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03343 
03344             Returns:
03345                 List of all found sub-shapes indices.
03346             """
03347             # Example: see GEOM_TestOthers.py
03348             aList = self.ShapesOp.GetShapesOnPlaneWithLocationIDs(theShape, theShapeType,
03349                                                                   theAx1, thePnt, theState)
03350             RaiseIfFailed("GetShapesOnPlaneWithLocationIDs", self.ShapesOp)
03351             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnQuadrangle (   self,
  theShape,
  theShapeType,
  theTopLeftPoint,
  theTopRigthPoint,
  theBottomLeftPoint,
  theBottomRigthPoint,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theTopLeftPointPoint, specifying top left corner of a quadrangle
theTopRigthPointPoint, specifying top right corner of a quadrangle
theBottomLeftPointPoint, specifying bottom left corner of a quadrangle
theBottomRigthPointPoint, specifying bottom right corner of a quadrangle
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified quadrangle by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theTopLeftPoint Point, specifying top left corner of a quadrangle
    theTopRigthPoint Point, specifying top right corner of a quadrangle
    theBottomLeftPoint Point, specifying bottom left corner of a quadrangle
    theBottomRigthPoint Point, specifying bottom right corner of a quadrangle
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3556 of file geompyDC.py.

03556 
03557                                   theBottomLeftPoint, theBottomRigthPoint, theState):
03558             """
03559             Find in theShape all sub-shapes of type theShapeType, situated relatively
03560             the specified quadrangle by the certain way, defined through theState parameter.
03561 
03562             Parameters:
03563                 theShape Shape to find sub-shapes of.
03564                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03565                 theTopLeftPoint Point, specifying top left corner of a quadrangle
03566                 theTopRigthPoint Point, specifying top right corner of a quadrangle
03567                 theBottomLeftPoint Point, specifying bottom left corner of a quadrangle
03568                 theBottomRigthPoint Point, specifying bottom right corner of a quadrangle
03569                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03570 
03571             Returns:
03572                 List of all found sub-shapes.
03573             """
03574             # Example: see GEOM_TestOthers.py
03575             aList = self.ShapesOp.GetShapesOnQuadrangle(theShape, theShapeType,
03576                                                         theTopLeftPoint, theTopRigthPoint,
03577                                                         theBottomLeftPoint, theBottomRigthPoint, theState)
03578             RaiseIfFailed("GetShapesOnQuadrangle", self.ShapesOp)
03579             return aList

Here is the call graph for this function:

Here is the caller graph for this function:

def geompyDC.geompyDC.GetShapesOnQuadrangleIDs (   self,
  theShape,
  theShapeType,
  theTopLeftPoint,
  theTopRigthPoint,
  theBottomLeftPoint,
  theBottomRigthPoint,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theTopLeftPointPoint, specifying top left corner of a quadrangle
theTopRigthPointPoint, specifying top right corner of a quadrangle
theBottomLeftPointPoint, specifying bottom left corner of a quadrangle
theBottomRigthPointPoint, specifying bottom right corner of a quadrangle
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified quadrangle by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theTopLeftPoint Point, specifying top left corner of a quadrangle
    theTopRigthPoint Point, specifying top right corner of a quadrangle
    theBottomLeftPoint Point, specifying bottom left corner of a quadrangle
    theBottomRigthPoint Point, specifying bottom right corner of a quadrangle
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3594 of file geompyDC.py.

03594 
03595                                      theBottomLeftPoint, theBottomRigthPoint, theState):
03596             """
03597             Find in theShape all sub-shapes of type theShapeType, situated relatively
03598             the specified quadrangle by the certain way, defined through theState parameter.
03599 
03600             Parameters:
03601                 theShape Shape to find sub-shapes of.
03602                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03603                 theTopLeftPoint Point, specifying top left corner of a quadrangle
03604                 theTopRigthPoint Point, specifying top right corner of a quadrangle
03605                 theBottomLeftPoint Point, specifying bottom left corner of a quadrangle
03606                 theBottomRigthPoint Point, specifying bottom right corner of a quadrangle
03607                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03608 
03609             Returns:
03610                 List of all found sub-shapes indices.
03611             """
03612 
03613             # Example: see GEOM_TestOthers.py
03614             aList = self.ShapesOp.GetShapesOnQuadrangleIDs(theShape, theShapeType,
03615                                                            theTopLeftPoint, theTopRigthPoint,
03616                                                            theBottomLeftPoint, theBottomRigthPoint, theState)
03617             RaiseIfFailed("GetShapesOnQuadrangleIDs", self.ShapesOp)
03618             return aList

Here is the call graph for this function:

Here is the caller graph for this function:

def geompyDC.geompyDC.GetShapesOnShape (   self,
  theCheckShape,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.

Parameters:
theCheckShapeShape for relative comparing. It must be a solid.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified theCheckShape by the
certain way, defined through theState parameter.

Parameters:
    theCheckShape Shape for relative comparing. It must be a solid.
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3685 of file geompyDC.py.

03685 
03686         def GetShapesOnShape(self, theCheckShape, theShape, theShapeType, theState):
03687             """
03688             Find in theShape all sub-shapes of type theShapeType,
03689             situated relatively the specified theCheckShape by the
03690             certain way, defined through theState parameter.
03691 
03692             Parameters:
03693                 theCheckShape Shape for relative comparing. It must be a solid.
03694                 theShape Shape to find sub-shapes of.
03695                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03696                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03697 
03698             Returns:
03699                 List of all found sub-shapes.
03700             """
03701             # Example: see GEOM_TestOthers.py
03702             aList = self.ShapesOp.GetShapesOnShape(theCheckShape, theShape,
03703                                                    theShapeType, theState)
03704             RaiseIfFailed("GetShapesOnShape", self.ShapesOp)
03705             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnShapeAsCompound (   self,
  theCheckShape,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.

Parameters:
theCheckShapeShape for relative comparing. It must be a solid.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
All found sub-shapes as compound.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified theCheckShape by the
certain way, defined through theState parameter.

Parameters:
    theCheckShape Shape for relative comparing. It must be a solid.
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    All found sub-shapes as compound.

Definition at line 3716 of file geompyDC.py.

03716 
03717         def GetShapesOnShapeAsCompound(self, theCheckShape, theShape, theShapeType, theState):
03718             """
03719             Find in theShape all sub-shapes of type theShapeType,
03720             situated relatively the specified theCheckShape by the
03721             certain way, defined through theState parameter.
03722 
03723             Parameters:
03724                 theCheckShape Shape for relative comparing. It must be a solid.
03725                 theShape Shape to find sub-shapes of.
03726                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03727                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03728 
03729             Returns:
03730                 All found sub-shapes as compound.
03731             """
03732             # Example: see GEOM_TestOthers.py
03733             anObj = self.ShapesOp.GetShapesOnShapeAsCompound(theCheckShape, theShape,
03734                                                              theShapeType, theState)
03735             RaiseIfFailed("GetShapesOnShapeAsCompound", self.ShapesOp)
03736             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnShapeIDs (   self,
  theCheckShape,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.

Parameters:
theCheckShapeShape for relative comparing. It must be a solid.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType,
situated relatively the specified theCheckShape by the
certain way, defined through theState parameter.

Parameters:
    theCheckShape Shape for relative comparing. It must be a solid.
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3747 of file geompyDC.py.

03747 
03748         def GetShapesOnShapeIDs(self, theCheckShape, theShape, theShapeType, theState):
03749             """
03750             Find in theShape all sub-shapes of type theShapeType,
03751             situated relatively the specified theCheckShape by the
03752             certain way, defined through theState parameter.
03753 
03754             Parameters:
03755                 theCheckShape Shape for relative comparing. It must be a solid.
03756                 theShape Shape to find sub-shapes of.
03757                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03758                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03759 
03760             Returns:
03761                 List of all found sub-shapes indices.
03762             """
03763             # Example: see GEOM_TestOthers.py
03764             aList = self.ShapesOp.GetShapesOnShapeIDs(theCheckShape, theShape,
03765                                                       theShapeType, theState)
03766             RaiseIfFailed("GetShapesOnShapeIDs", self.ShapesOp)
03767             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnSphere (   self,
  theShape,
  theShapeType,
  theCenter,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theCenterPoint, specifying center of the sphere to find shapes on.
theRadiusRadius of the sphere to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified sphere by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theCenter Point, specifying center of the sphere to find shapes on.
    theRadius Radius of the sphere to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes.

Definition at line 3492 of file geompyDC.py.

03492 
03493         def GetShapesOnSphere(self,theShape, theShapeType, theCenter, theRadius, theState):
03494             """
03495             Find in theShape all sub-shapes of type theShapeType, situated relatively
03496             the specified sphere by the certain way, defined through theState parameter.
03497 
03498             Parameters:
03499                 theShape Shape to find sub-shapes of.
03500                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03501                 theCenter Point, specifying center of the sphere to find shapes on.
03502                 theRadius Radius of the sphere to find shapes on.
03503                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03504 
03505             Returns:
03506                 List of all found sub-shapes.
03507             """
03508             # Example: see GEOM_TestOthers.py
03509             aList = self.ShapesOp.GetShapesOnSphere(theShape, theShapeType, theCenter, theRadius, theState)
03510             RaiseIfFailed("GetShapesOnSphere", self.ShapesOp)
03511             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesOnSphereIDs (   self,
  theShape,
  theShapeType,
  theCenter,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.

Parameters:
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theCenterPoint, specifying center of the sphere to find shapes on.
theRadiusRadius of the sphere to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns:
List of all found sub-shapes indices.

Example

Find in theShape all sub-shapes of type theShapeType, situated relatively
the specified sphere by the certain way, defined through theState parameter.

Parameters:
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
    theCenter Point, specifying center of the sphere to find shapes on.
    theRadius Radius of the sphere to find shapes on.
    theState The state of the sub-shapes to find (see GEOM::shape_state)

Returns:
    List of all found sub-shapes indices.

Definition at line 3522 of file geompyDC.py.

03522 
03523         def GetShapesOnSphereIDs(self,theShape, theShapeType, theCenter, theRadius, theState):
03524             """
03525             Find in theShape all sub-shapes of type theShapeType, situated relatively
03526             the specified sphere by the certain way, defined through theState parameter.
03527 
03528             Parameters:
03529                 theShape Shape to find sub-shapes of.
03530                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03531                 theCenter Point, specifying center of the sphere to find shapes on.
03532                 theRadius Radius of the sphere to find shapes on.
03533                 theState The state of the sub-shapes to find (see GEOM::shape_state)
03534 
03535             Returns:
03536                 List of all found sub-shapes indices.
03537             """
03538             # Example: see GEOM_TestOthers.py
03539             aList = self.ShapesOp.GetShapesOnSphereIDs(theShape, theShapeType, theCenter, theRadius, theState)
03540             RaiseIfFailed("GetShapesOnSphereIDs", self.ShapesOp)
03541             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetSharedShapes (   self,
  theShape1,
  theShape2,
  theShapeType 
)

Get all sub-shapes of theShape1 of the given type, shared with theShape2.

Parameters:
theShape1Shape to find sub-shapes in.
theShape2Shape to find shared sub-shapes with.
theShapeTypeType of sub-shapes to be retrieved.
Returns:
List of sub-shapes of theShape1, shared with theShape2.

Example

Get all sub-shapes of theShape1 of the given type, shared with theShape2.

Parameters:
    theShape1 Shape to find sub-shapes in.
    theShape2 Shape to find shared sub-shapes with.
    theShapeType Type of sub-shapes to be retrieved.

Returns:
    List of sub-shapes of theShape1, shared with theShape2.

Definition at line 3179 of file geompyDC.py.

03179 
03180         def GetSharedShapes(self,theShape1, theShape2, theShapeType):
03181             """
03182             Get all sub-shapes of theShape1 of the given type, shared with theShape2.
03183 
03184             Parameters:
03185                 theShape1 Shape to find sub-shapes in.
03186                 theShape2 Shape to find shared sub-shapes with.
03187                 theShapeType Type of sub-shapes to be retrieved.
03188 
03189             Returns:
03190                 List of sub-shapes of theShape1, shared with theShape2.
03191             """
03192             # Example: see GEOM_TestOthers.py
03193             aList = self.ShapesOp.GetSharedShapes(theShape1, theShape2, theShapeType)
03194             RaiseIfFailed("GetSharedShapes", self.ShapesOp)
03195             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetSharedShapesMulti (   self,
  theShapes,
  theShapeType 
)

Get all sub-shapes, shared by all shapes in the list theShapes.

Parameters:
theShapesShapes to find common sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
Returns:
List of objects, that are sub-shapes of all given shapes.

Example

Get all sub-shapes, shared by all shapes in the list theShapes.

Parameters:
    theShapes Shapes to find common sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)

Returns:    
    List of GEOM.GEOM_Object, that are sub-shapes of all given shapes.

Definition at line 3202 of file geompyDC.py.

03202 
03203         def GetSharedShapesMulti(self, theShapes, theShapeType):
03204             """
03205             Get all sub-shapes, shared by all shapes in the list theShapes.
03206 
03207             Parameters:
03208                 theShapes Shapes to find common sub-shapes of.
03209                 theShapeType Type of sub-shapes to be retrieved (see geompy.ShapeType)
03210 
03211             Returns:    
03212                 List of GEOM.GEOM_Object, that are sub-shapes of all given shapes.
03213             """
03214             # Example: see GEOM_TestOthers.py
03215             aList = self.ShapesOp.GetSharedShapesMulti(theShapes, theShapeType)
03216             RaiseIfFailed("GetSharedShapesMulti", self.ShapesOp)
03217             return aList

Here is the call graph for this function: