Back to index

salome-geom  6.5.0
Functions
Blocks Operations
Transforming geometrical objects
Collaboration diagram for Blocks Operations:

Functions

def geompyDC.geompyDC.GetPoint
 Get a vertex, found in the given shape by its coordinates.
def geompyDC.geompyDC.GetVertexNearPoint
 Find a vertex of the given shape, which has minimal distance to the given point.
def geompyDC.geompyDC.GetEdge
 Get an edge, found in the given shape by two given vertices.
def geompyDC.geompyDC.GetEdgeNearPoint
 Find an edge of the given shape, which has minimal distance to the given point.
def geompyDC.geompyDC.GetFaceByPoints
 Returns a face, found in the given shape by four given corner vertices.
def geompyDC.geompyDC.GetFaceByEdges
 Get a face of block, found in the given shape by two given edges.
def geompyDC.geompyDC.GetOppositeFace
 Find a face, opposite to the given one in the given block.
def geompyDC.geompyDC.GetFaceNearPoint
 Find a face of the given shape, which has minimal distance to the given point.
def geompyDC.geompyDC.GetFaceByNormale
 Find a face of block, whose outside normale has minimal angle with the given vector.
def geompyDC.geompyDC.GetShapesNearPoint
 Find all sub-shapes of type theShapeType of the given shape, which have minimal distance to the given point.
def geompyDC.geompyDC.MakeBlockExplode
 Get all the blocks, contained in the given compound.
def geompyDC.geompyDC.GetBlockNearPoint
 Find block, containing the given point inside its volume or on boundary.
def geompyDC.geompyDC.GetBlockByParts
 Find block, containing all the elements, passed as the parts, or maximum quantity of them.
def geompyDC.geompyDC.GetBlocksByParts
 Return all blocks, containing all the elements, passed as the parts.
def geompyDC.geompyDC.MakeMultiTransformation1D
 Multi-transformate block and glue the result.
def geompyDC.geompyDC.MakeMultiTransformation2D
 Multi-transformate block and glue the result.
def geompyDC.geompyDC.Propagate
 Build all possible propagation groups.

Function Documentation

def geompyDC.geompyDC.GetBlockByParts (   self,
  theCompound,
  theParts 
)

Find block, containing all the elements, passed as the parts, or maximum quantity of them.

Parameters:
theCompoundCompound, to find block in.
thePartsList of faces and/or edges and/or vertices to be parts of the found block.
Returns:
New GEOM.GEOM_Object, containing the found block.

Example

 Find block, containing all the elements, passed as the parts, or maximum quantity of them.

 Parameters:
    theCompound Compound, to find block in.
    theParts List of faces and/or edges and/or vertices to be parts of the found block.

Returns: 
    New GEOM_Object, containing the found block.

Definition at line 7785 of file geompyDC.py.

07785 
07786         def GetBlockByParts(self,theCompound, theParts):
07787             """
07788              Find block, containing all the elements, passed as the parts, or maximum quantity of them.
07789 
07790              Parameters:
07791                 theCompound Compound, to find block in.
07792                 theParts List of faces and/or edges and/or vertices to be parts of the found block.
07793 
07794             Returns: 
07795                 New GEOM_Object, containing the found block.
07796             """
07797             # Example: see GEOM_TestOthers.py
07798             anObj = self.BlocksOp.GetBlockByParts(theCompound, theParts)
07799             RaiseIfFailed("GetBlockByParts", self.BlocksOp)
07800             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetBlockNearPoint (   self,
  theCompound,
  thePoint 
)

Find block, containing the given point inside its volume or on boundary.

Parameters:
theCompoundCompound, to find block in.
thePointPoint, close to the desired block. If the point lays on boundary between some blocks, we return block with nearest center.
Returns:
New GEOM.GEOM_Object, containing the found block.

Example

Find block, containing the given point inside its volume or on boundary.

Parameters:
    theCompound Compound, to find block in.
    thePoint Point, close to the desired block. If the point lays on
 boundary between some blocks, we return block with nearest center.

Returns:
    New GEOM.GEOM_Object, containing the found block.

Definition at line 7762 of file geompyDC.py.

07762 
07763         def GetBlockNearPoint(self,theCompound, thePoint):
07764             """
07765             Find block, containing the given point inside its volume or on boundary.
07766 
07767             Parameters:
07768                 theCompound Compound, to find block in.
07769                 thePoint Point, close to the desired block. If the point lays on
07770                          boundary between some blocks, we return block with nearest center.
07771 
07772             Returns:
07773                 New GEOM.GEOM_Object, containing the found block.
07774             """
07775             # Example: see GEOM_Spanner.py
07776             anObj = self.BlocksOp.GetBlockNearPoint(theCompound, thePoint)
07777             RaiseIfFailed("GetBlockNearPoint", self.BlocksOp)
07778             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetBlocksByParts (   self,
  theCompound,
  theParts 
)

Return all blocks, containing all the elements, passed as the parts.

Parameters:
theCompoundCompound, to find blocks in.
thePartsList of faces and/or edges and/or vertices to be parts of the found blocks.
Returns:
List of GEOM.GEOM_Object, containing the found blocks.

Example

Return all blocks, containing all the elements, passed as the parts.

Parameters:
    theCompound Compound, to find blocks in.
    theParts List of faces and/or edges and/or vertices to be parts of the found blocks.

Returns:
    List of GEOM.GEOM_Object, containing the found blocks.

Definition at line 7807 of file geompyDC.py.

07807 
07808         def GetBlocksByParts(self,theCompound, theParts):
07809             """
07810             Return all blocks, containing all the elements, passed as the parts.
07811 
07812             Parameters:
07813                 theCompound Compound, to find blocks in.
07814                 theParts List of faces and/or edges and/or vertices to be parts of the found blocks.
07815 
07816             Returns:
07817                 List of GEOM.GEOM_Object, containing the found blocks.
07818             """
07819             # Example: see GEOM_Spanner.py
07820             aList = self.BlocksOp.GetBlocksByParts(theCompound, theParts)
07821             RaiseIfFailed("GetBlocksByParts", self.BlocksOp)
07822             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.GetEdge (   self,
  theShape,
  thePoint1,
  thePoint2 
)

Get an edge, found in the given shape by two given vertices.

Parameters:
theShapeBlock or a compound of blocks.
thePoint1,thePoint2Points, close to the ends of the desired edge.
Returns:
New GEOM.GEOM_Object, containing the found edge.

Example

Get an edge, found in the given shape by two given vertices.

Parameters: 
    theShape Block or a compound of blocks.
    thePoint1,thePoint2 Points, close to the ends of the desired edge.

Returns:
    New GEOM.GEOM_Object, containing the found edge.

Definition at line 7436 of file geompyDC.py.

07436 
07437         def GetEdge(self, theShape, thePoint1, thePoint2):
07438             """
07439             Get an edge, found in the given shape by two given vertices.
07440 
07441             Parameters: 
07442                 theShape Block or a compound of blocks.
07443                 thePoint1,thePoint2 Points, close to the ends of the desired edge.
07444 
07445             Returns:
07446                 New GEOM.GEOM_Object, containing the found edge.
07447             """
07448             # Example: see GEOM_Spanner.py
07449             anObj = self.BlocksOp.GetEdge(theShape, thePoint1, thePoint2)
07450             RaiseIfFailed("GetEdge", self.BlocksOp)
07451             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetEdgeNearPoint (   self,
  theShape,
  thePoint 
)

Find an edge of the given shape, which has minimal distance to the given point.

Parameters:
theShapeBlock or a compound of blocks.
thePointPoint, close to the desired edge.
Returns:
New GEOM.GEOM_Object, containing the found edge.

Example

Find an edge of the given shape, which has minimal distance to the given point.

Parameters: 
    theShape Block or a compound of blocks.
    thePoint Point, close to the desired edge.

Returns:
    New GEOM.GEOM_Object, containing the found edge.

Definition at line 7458 of file geompyDC.py.

07458 
07459         def GetEdgeNearPoint(self, theShape, thePoint):
07460             """
07461             Find an edge of the given shape, which has minimal distance to the given point.
07462 
07463             Parameters: 
07464                 theShape Block or a compound of blocks.
07465                 thePoint Point, close to the desired edge.
07466 
07467             Returns:
07468                 New GEOM.GEOM_Object, containing the found edge.
07469             """
07470             # Example: see GEOM_TestOthers.py
07471             anObj = self.BlocksOp.GetEdgeNearPoint(theShape, thePoint)
07472             RaiseIfFailed("GetEdgeNearPoint", self.BlocksOp)
07473             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetFaceByEdges (   self,
  theShape,
  theEdge1,
  theEdge2 
)

Get a face of block, found in the given shape by two given edges.

Parameters:
theShapeBlock or a compound of blocks.
theEdge1,theEdge2Edges, close to the edges of the desired face.
Returns:
New GEOM.GEOM_Object, containing the found face.

Example

Get a face of block, found in the given shape by two given edges.

Parameters:
    theShape Block or a compound of blocks.
    theEdge1,theEdge2 Edges, close to the edges of the desired face.

Returns:
    New GEOM.GEOM_Object, containing the found face.

Definition at line 7502 of file geompyDC.py.

07502 
07503         def GetFaceByEdges(self,theShape, theEdge1, theEdge2):
07504             """
07505             Get a face of block, found in the given shape by two given edges.
07506 
07507             Parameters:
07508                 theShape Block or a compound of blocks.
07509                 theEdge1,theEdge2 Edges, close to the edges of the desired face.
07510 
07511             Returns:
07512                 New GEOM.GEOM_Object, containing the found face.
07513             """
07514             # Example: see GEOM_Spanner.py
07515             anObj = self.BlocksOp.GetFaceByEdges(theShape, theEdge1, theEdge2)
07516             RaiseIfFailed("GetFaceByEdges", self.BlocksOp)
07517             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetFaceByNormale (   self,
  theBlock,
  theVector 
)

Find a face of block, whose outside normale has minimal angle with the given vector.

Parameters:
theBlockBlock or a compound of blocks.
theVectorVector, close to the normale of the desired face.
Returns:
New GEOM.GEOM_Object, containing the found face.

Example

Find a face of block, whose outside normale has minimal angle with the given vector.

Parameters:
    theBlock Block or a compound of blocks.
    theVector Vector, close to the normale of the desired face.

Returns:
    New GEOM.GEOM_Object, containing the found face.

Definition at line 7568 of file geompyDC.py.

07568 
07569         def GetFaceByNormale(self, theBlock, theVector):
07570             """
07571             Find a face of block, whose outside normale has minimal angle with the given vector.
07572 
07573             Parameters:
07574                 theBlock Block or a compound of blocks.
07575                 theVector Vector, close to the normale of the desired face.
07576 
07577             Returns:
07578                 New GEOM.GEOM_Object, containing the found face.
07579             """
07580             # Example: see GEOM_Spanner.py
07581             anObj = self.BlocksOp.GetFaceByNormale(theBlock, theVector)
07582             RaiseIfFailed("GetFaceByNormale", self.BlocksOp)
07583             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetFaceByPoints (   self,
  theShape,
  thePoint1,
  thePoint2,
  thePoint3,
  thePoint4 
)

Returns a face, found in the given shape by four given corner vertices.

Parameters:
theShapeBlock or a compound of blocks.
thePoint1,thePoint2,thePoint3,thePoint4Points, close to the corners of the desired face.
Returns:
New GEOM.GEOM_Object, containing the found face.

Example

Returns a face, found in the given shape by four given corner vertices.

Parameters:
    theShape Block or a compound of blocks.
    thePoint1,thePoint2,thePoint3,thePoint4 Points, close to the corners of the desired face.

Returns:
    New GEOM.GEOM_Object, containing the found face.

Definition at line 7480 of file geompyDC.py.

07480 
07481         def GetFaceByPoints(self,theShape, thePoint1, thePoint2, thePoint3, thePoint4):
07482             """
07483             Returns a face, found in the given shape by four given corner vertices.
07484 
07485             Parameters:
07486                 theShape Block or a compound of blocks.
07487                 thePoint1,thePoint2,thePoint3,thePoint4 Points, close to the corners of the desired face.
07488 
07489             Returns:
07490                 New GEOM.GEOM_Object, containing the found face.
07491             """
07492             # Example: see GEOM_Spanner.py
07493             anObj = self.BlocksOp.GetFaceByPoints(theShape, thePoint1, thePoint2, thePoint3, thePoint4)
07494             RaiseIfFailed("GetFaceByPoints", self.BlocksOp)
07495             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetFaceNearPoint (   self,
  theShape,
  thePoint 
)

Find a face of the given shape, which has minimal distance to the given point.

Parameters:
theShapeBlock or a compound of blocks.
thePointPoint, close to the desired face.
Returns:
New GEOM.GEOM_Object, containing the found face.

Example

Find a face of the given shape, which has minimal distance to the given point.

Parameters:
    theShape Block or a compound of blocks.
    thePoint Point, close to the desired face.

Returns:
    New GEOM.GEOM_Object, containing the found face.

Definition at line 7546 of file geompyDC.py.

07546 
07547         def GetFaceNearPoint(self, theShape, thePoint):
07548             """
07549             Find a face of the given shape, which has minimal distance to the given point.
07550 
07551             Parameters:
07552                 theShape Block or a compound of blocks.
07553                 thePoint Point, close to the desired face.
07554 
07555             Returns:
07556                 New GEOM.GEOM_Object, containing the found face.
07557             """
07558             # Example: see GEOM_Spanner.py
07559             anObj = self.BlocksOp.GetFaceNearPoint(theShape, thePoint)
07560             RaiseIfFailed("GetFaceNearPoint", self.BlocksOp)
07561             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetOppositeFace (   self,
  theBlock,
  theFace 
)

Find a face, opposite to the given one in the given block.

Parameters:
theBlockMust be a hexahedral solid.
theFaceFace of theBlock, opposite to the desired face.
Returns:
New GEOM.GEOM_Object, containing the found face.

Example

Find a face, opposite to the given one in the given block.

Parameters:
    theBlock Must be a hexahedral solid.
    theFace Face of theBlock, opposite to the desired face.

Returns: 
    New GEOM.GEOM_Object, containing the found face.

Definition at line 7524 of file geompyDC.py.

07524 
07525         def GetOppositeFace(self,theBlock, theFace):
07526             """
07527             Find a face, opposite to the given one in the given block.
07528 
07529             Parameters:
07530                 theBlock Must be a hexahedral solid.
07531                 theFace Face of theBlock, opposite to the desired face.
07532 
07533             Returns: 
07534                 New GEOM.GEOM_Object, containing the found face.
07535             """
07536             # Example: see GEOM_Spanner.py
07537             anObj = self.BlocksOp.GetOppositeFace(theBlock, theFace)
07538             RaiseIfFailed("GetOppositeFace", self.BlocksOp)
07539             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetPoint (   self,
  theShape,
  theX,
  theY,
  theZ,
  theEpsilon 
)

Get a vertex, found in the given shape by its coordinates.

Parameters:
theShapeBlock or a compound of blocks.
theX,theY,theZCoordinates of the sought vertex.
theEpsilonMaximum allowed distance between the resulting vertex and point with the given coordinates.
Returns:
New GEOM.GEOM_Object, containing the found vertex.

Example

Get a vertex, found in the given shape by its coordinates.

Parameters: 
    theShape Block or a compound of blocks.
    theX,theY,theZ Coordinates of the sought vertex.
    theEpsilon Maximum allowed distance between the resulting
   vertex and point with the given coordinates.

Returns:                  
    New GEOM.GEOM_Object, containing the found vertex.

Example of usage:
    pnt = geompy.GetPoint(shape, -50,  50,  50, 0.01)

Definition at line 7383 of file geompyDC.py.

07383 
07384         def GetPoint(self, theShape, theX, theY, theZ, theEpsilon):
07385             """
07386             Get a vertex, found in the given shape by its coordinates.
07387 
07388             Parameters: 
07389                 theShape Block or a compound of blocks.
07390                 theX,theY,theZ Coordinates of the sought vertex.
07391                 theEpsilon Maximum allowed distance between the resulting
07392                            vertex and point with the given coordinates.
07393 
07394             Returns:                  
07395                 New GEOM.GEOM_Object, containing the found vertex.
07396 
07397             Example of usage:
07398                 pnt = geompy.GetPoint(shape, -50,  50,  50, 0.01)
07399             """
07400             # Example: see GEOM_TestOthers.py
07401             anObj = self.BlocksOp.GetPoint(theShape, theX, theY, theZ, theEpsilon)
07402             RaiseIfFailed("GetPoint", self.BlocksOp)
07403             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetShapesNearPoint (   self,
  theShape,
  thePoint,
  theShapeType,
  theTolerance = 1e-07 
)

Find all sub-shapes of type theShapeType of the given shape, which have minimal distance to the given point.

Parameters:
theShapeAny shape.
thePointPoint, close to the desired shape.
theShapeTypeDefines what kind of sub-shapes is searched GEOM::shape_type
theToleranceThe tolerance for distances comparison. All shapes with distances to the given point in interval [minimal_distance, minimal_distance + theTolerance] will be gathered.
Returns:
New GEOM_Object, containing a group of all found shapes.

Example

Find all sub-shapes of type theShapeType of the given shape,
which have minimal distance to the given point.

Parameters:
    theShape Any shape.
    thePoint Point, close to the desired shape.
    theShapeType Defines what kind of sub-shapes is searched (see GEOM::shape_type)
    theTolerance The tolerance for distances comparison. All shapes
        with distances to the given point in interval
        [minimal_distance, minimal_distance + theTolerance] will be gathered.

Returns:
    New GEOM_Object, containing a group of all found shapes.

Definition at line 7595 of file geompyDC.py.

07595 
07596         def GetShapesNearPoint(self, theShape, thePoint, theShapeType, theTolerance = 1e-07):
07597             """
07598             Find all sub-shapes of type theShapeType of the given shape,
07599             which have minimal distance to the given point.
07600 
07601             Parameters:
07602                 theShape Any shape.
07603                 thePoint Point, close to the desired shape.
07604                 theShapeType Defines what kind of sub-shapes is searched (see GEOM::shape_type)
07605                 theTolerance The tolerance for distances comparison. All shapes
07606                                 with distances to the given point in interval
07607                                 [minimal_distance, minimal_distance + theTolerance] will be gathered.
07608 
07609             Returns:
07610                 New GEOM_Object, containing a group of all found shapes.
07611             """
07612             # Example: see GEOM_TestOthers.py
07613             anObj = self.BlocksOp.GetShapesNearPoint(theShape, thePoint, theShapeType, theTolerance)
07614             RaiseIfFailed("GetShapesNearPoint", self.BlocksOp)
07615             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.GetVertexNearPoint (   self,
  theShape,
  thePoint 
)

Find a vertex of the given shape, which has minimal distance to the given point.

Parameters:
theShapeAny shape.
thePointPoint, close to the desired vertex.
Returns:
New GEOM.GEOM_Object, containing the found vertex.

Example

Find a vertex of the given shape, which has minimal distance to the given point.

Parameters: 
    theShape Any shape.
    thePoint Point, close to the desired vertex.

Returns:
    New GEOM.GEOM_Object, containing the found vertex.

Example of usage:
    pmidle = geompy.MakeVertex(50, 0, 50)
    edge1 = geompy.GetEdgeNearPoint(blocksComp, pmidle)

Definition at line 7410 of file geompyDC.py.

07410 
07411         def GetVertexNearPoint(self, theShape, thePoint):
07412             """
07413             Find a vertex of the given shape, which has minimal distance to the given point.
07414 
07415             Parameters: 
07416                 theShape Any shape.
07417                 thePoint Point, close to the desired vertex.
07418 
07419             Returns:
07420                 New GEOM.GEOM_Object, containing the found vertex.
07421 
07422             Example of usage:
07423                 pmidle = geompy.MakeVertex(50, 0, 50)
07424                 edge1 = geompy.GetEdgeNearPoint(blocksComp, pmidle)
07425             """
07426             # Example: see GEOM_TestOthers.py
07427             anObj = self.BlocksOp.GetVertexNearPoint(theShape, thePoint)
07428             RaiseIfFailed("GetVertexNearPoint", self.BlocksOp)
07429             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.MakeBlockExplode (   self,
  theCompound,
  theMinNbFaces,
  theMaxNbFaces 
)

Get all the blocks, contained in the given compound.

Parameters:
theCompoundThe compound to explode.
theMinNbFacesIf solid has lower number of faces, it is not a block.
theMaxNbFacesIf solid has higher number of faces, it is not a block.
Note:
If theMaxNbFaces = 0, the maximum number of faces is not restricted.
Returns:
List of GEOM.GEOM_Object, containing the retrieved blocks.

Example 1
Example 2

Get all the blocks, contained in the given compound.

Parameters:
    theCompound The compound to explode.
    theMinNbFaces If solid has lower number of faces, it is not a block.
    theMaxNbFaces If solid has higher number of faces, it is not a block.

Note:
    If theMaxNbFaces = 0, the maximum number of faces is not restricted.

Returns:  
    List of GEOM.GEOM_Object, containing the retrieved blocks.

Definition at line 7731 of file geompyDC.py.

07731 
07732         def MakeBlockExplode(self,theCompound, theMinNbFaces, theMaxNbFaces):
07733             """
07734             Get all the blocks, contained in the given compound.
07735 
07736             Parameters:
07737                 theCompound The compound to explode.
07738                 theMinNbFaces If solid has lower number of faces, it is not a block.
07739                 theMaxNbFaces If solid has higher number of faces, it is not a block.
07740 
07741             Note:
07742                 If theMaxNbFaces = 0, the maximum number of faces is not restricted.
07743 
07744             Returns:  
07745                 List of GEOM.GEOM_Object, containing the retrieved blocks.
07746             """
07747             # Example: see GEOM_TestOthers.py
07748             theMinNbFaces,theMaxNbFaces,Parameters = ParseParameters(theMinNbFaces,theMaxNbFaces)
07749             aList = self.BlocksOp.ExplodeCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces)
07750             RaiseIfFailed("ExplodeCompoundOfBlocks", self.BlocksOp)
07751             for anObj in aList:
07752                 anObj.SetParameters(Parameters)
07753                 pass
07754             return aList

Here is the call graph for this function:

def geompyDC.geompyDC.MakeMultiTransformation1D (   self,
  Block,
  DirFace1,
  DirFace2,
  NbTimes 
)

Multi-transformate block and glue the result.

Transformation is defined so, as to superpose direction faces.

Parameters:
BlockHexahedral solid to be multi-transformed.
DirFace1ID of First direction face.
DirFace2ID of Second direction face.
NbTimesQuantity of transformations to be done.
Note:
Unique ID of sub-shape can be obtained, using method GetSubShapeID().
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example

Multi-transformate block and glue the result.
Transformation is defined so, as to superpose direction faces.

Parameters:
    Block Hexahedral solid to be multi-transformed.
    DirFace1 ID of First direction face.
    DirFace2 ID of Second direction face.
    NbTimes Quantity of transformations to be done.

Note:
    Unique ID of sub-shape can be obtained, using method GetSubShapeID().

Returns:
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 7833 of file geompyDC.py.

07833 
07834         def MakeMultiTransformation1D(self,Block, DirFace1, DirFace2, NbTimes):
07835             """
07836             Multi-transformate block and glue the result.
07837             Transformation is defined so, as to superpose direction faces.
07838 
07839             Parameters:
07840                 Block Hexahedral solid to be multi-transformed.
07841                 DirFace1 ID of First direction face.
07842                 DirFace2 ID of Second direction face.
07843                 NbTimes Quantity of transformations to be done.
07844 
07845             Note:
07846                 Unique ID of sub-shape can be obtained, using method GetSubShapeID().
07847 
07848             Returns:
07849                 New GEOM.GEOM_Object, containing the result shape.
07850             """
07851             # Example: see GEOM_Spanner.py
07852             DirFace1,DirFace2,NbTimes,Parameters = ParseParameters(DirFace1,DirFace2,NbTimes)
07853             anObj = self.BlocksOp.MakeMultiTransformation1D(Block, DirFace1, DirFace2, NbTimes)
07854             RaiseIfFailed("MakeMultiTransformation1D", self.BlocksOp)
07855             anObj.SetParameters(Parameters)
07856             return anObj

Here is the call graph for this function:

def geompyDC.geompyDC.MakeMultiTransformation2D (   self,
  Block,
  DirFace1U,
  DirFace2U,
  NbTimesU,
  DirFace1V,
  DirFace2V,
  NbTimesV 
)

Multi-transformate block and glue the result.

Parameters:
BlockHexahedral solid to be multi-transformed.
DirFace1U,DirFace2UIDs of Direction faces for the first transformation.
DirFace1V,DirFace2VIDs of Direction faces for the second transformation.
NbTimesU,NbTimesVQuantity of transformations to be done.
Returns:
New GEOM.GEOM_Object, containing the result shape.

Example

Multi-transformate block and glue the result.

Parameters:
    Block Hexahedral solid to be multi-transformed.
    DirFace1U,DirFace2U IDs of Direction faces for the first transformation.
    DirFace1V,DirFace2V IDs of Direction faces for the second transformation.
    NbTimesU,NbTimesV Quantity of transformations to be done.

Returns:
    New GEOM.GEOM_Object, containing the result shape.

Definition at line 7866 of file geompyDC.py.

07866 
07867                                       DirFace1V, DirFace2V, NbTimesV):
07868             """
07869             Multi-transformate block and glue the result.
07870 
07871             Parameters:
07872                 Block Hexahedral solid to be multi-transformed.
07873                 DirFace1U,DirFace2U IDs of Direction faces for the first transformation.
07874                 DirFace1V,DirFace2V IDs of Direction faces for the second transformation.
07875                 NbTimesU,NbTimesV Quantity of transformations to be done.
07876 
07877             Returns:
07878                 New GEOM.GEOM_Object, containing the result shape.
07879             """
07880             # Example: see GEOM_Spanner.py
07881             DirFace1U,DirFace2U,NbTimesU,DirFace1V,DirFace2V,NbTimesV,Parameters = ParseParameters(
07882               DirFace1U,DirFace2U,NbTimesU,DirFace1V,DirFace2V,NbTimesV)
07883             anObj = self.BlocksOp.MakeMultiTransformation2D(Block, DirFace1U, DirFace2U, NbTimesU,
07884                                                             DirFace1V, DirFace2V, NbTimesV)
07885             RaiseIfFailed("MakeMultiTransformation2D", self.BlocksOp)
07886             anObj.SetParameters(Parameters)
07887             return anObj

Here is the call graph for this function:

Here is the caller graph for this function:

def geompyDC.geompyDC.Propagate (   self,
  theShape 
)

Build all possible propagation groups.

Propagation group is a set of all edges, opposite to one (main) edge of this group directly or through other opposite edges. Notion of Opposite Edge make sence only on quadrangle face.

Parameters:
theShapeShape to build propagation groups on.
Returns:
List of GEOM.GEOM_Object, each of them is a propagation group.

Example

Build all possible propagation groups.
Propagation group is a set of all edges, opposite to one (main)
edge of this group directly or through other opposite edges.
Notion of Opposite Edge make sence only on quadrangle face.

Parameters:
    theShape Shape to build propagation groups on.

Returns:
    List of GEOM.GEOM_Object, each of them is a propagation group.

Definition at line 7896 of file geompyDC.py.

07896 
07897         def Propagate(self,theShape):
07898             """
07899             Build all possible propagation groups.
07900             Propagation group is a set of all edges, opposite to one (main)
07901             edge of this group directly or through other opposite edges.
07902             Notion of Opposite Edge make sence only on quadrangle face.
07903 
07904             Parameters:
07905                 theShape Shape to build propagation groups on.
07906 
07907             Returns:
07908                 List of GEOM.GEOM_Object, each of them is a propagation group.
07909             """
07910             # Example: see GEOM_TestOthers.py
07911             listChains = self.BlocksOp.Propagate(theShape)
07912             RaiseIfFailed("Propagate", self.BlocksOp)
07913             return listChains

Here is the call graph for this function: