Functions | |
def | GetPoint |
Get a vertex, found in the given shape by its coordinates. More... | |
def | GetVertexNearPoint |
Find a vertex of the given shape, which has minimal distance to the given point. More... | |
def | GetEdge |
Get an edge, found in the given shape by two given vertices. More... | |
def | GetEdgeNearPoint |
Find an edge of the given shape, which has minimal distance to the given point. More... | |
def | GetFaceByPoints |
Returns a face, found in the given shape by four given corner vertices. More... | |
def | GetFaceByEdges |
Get a face of block, found in the given shape by two given edges. More... | |
def | GetOppositeFace |
Find a face, opposite to the given one in the given block. More... | |
def | GetFaceNearPoint |
Find a face of the given shape, which has minimal distance to the given point. More... | |
def | GetFaceByNormale |
Find a face of block, whose outside normale has minimal angle with the given vector. More... | |
def | GetShapesNearPoint |
Find all sub-shapes of type theShapeType of the given shape, which have minimal distance to the given point. More... | |
def | MakeBlockExplode |
Get all the blocks, contained in the given compound. More... | |
def | GetBlockNearPoint |
Find block, containing the given point inside its volume or on boundary. More... | |
def | GetBlockByParts |
Find block, containing all the elements, passed as the parts, or maximum quantity of them. More... | |
def | GetBlocksByParts |
Return all blocks, containing all the elements, passed as the parts. More... | |
def | MakeMultiTransformation1D |
Multi-transformate block and glue the result. More... | |
def | MakeMultiTransformation2D |
Multi-transformate block and glue the result. More... | |
def | Propagate |
Build all possible propagation groups. More... | |
def GetPoint | ( | self, | |
theShape, | |||
theX, | |||
theY, | |||
theZ, | |||
theEpsilon, | |||
theName = None |
|||
) |
Get a vertex, found in the given shape by its coordinates.
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetVertexNearPoint | ( | self, | |
theShape, | |||
thePoint, | |||
theName = None |
|||
) |
Find a vertex of the given shape, which has minimal distance to the given point.
theShape | Any shape. |
thePoint | Point, close to the desired vertex. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetEdge | ( | self, | |
theShape, | |||
thePoint1, | |||
thePoint2, | |||
theName = None |
|||
) |
Get an edge, found in the given shape by two given vertices.
theShape | Block or a compound of blocks. |
thePoint1,thePoint2 | Points, close to the ends of the desired edge. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetEdgeNearPoint | ( | self, | |
theShape, | |||
thePoint, | |||
theName = None |
|||
) |
Find an edge of the given shape, which has minimal distance to the given point.
theShape | Block or a compound of blocks. |
thePoint | Point, close to the desired edge. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetFaceByPoints | ( | self, | |
theShape, | |||
thePoint1, | |||
thePoint2, | |||
thePoint3, | |||
thePoint4, | |||
theName = None |
|||
) |
Returns a face, found in the given shape by four given corner vertices.
theShape | Block or a compound of blocks. |
thePoint1,thePoint2,thePoint3,thePoint4 | Points, close to the corners of the desired face. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
Example
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetFaceByEdges | ( | self, | |
theShape, | |||
theEdge1, | |||
theEdge2, | |||
theName = None |
|||
) |
Get a face of block, found in the given shape by two given edges.
theShape | Block or a compound of blocks. |
theEdge1,theEdge2 | Edges, close to the edges of the desired face. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
Example
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetOppositeFace | ( | self, | |
theBlock, | |||
theFace, | |||
theName = None |
|||
) |
Find a face, opposite to the given one in the given block.
theBlock | Must be a hexahedral solid. |
theFace | Face of theBlock, opposite to the desired face. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetFaceNearPoint | ( | self, | |
theShape, | |||
thePoint, | |||
theName = None |
|||
) |
Find a face of the given shape, which has minimal distance to the given point.
theShape | Block or a compound of blocks. |
thePoint | Point, close to the desired face. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetFaceByNormale | ( | self, | |
theBlock, | |||
theVector, | |||
theName = None |
|||
) |
Find a face of block, whose outside normale has minimal angle with the given vector.
theBlock | Block or a compound of blocks. |
theVector | Vector, close to the normale of the desired face. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
Example
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetShapesNearPoint | ( | self, | |
theShape, | |||
thePoint, | |||
theShapeType, | |||
theTolerance = 1e-07 , |
|||
theName = None |
|||
) |
Find all sub-shapes of type theShapeType of the given shape, which have minimal distance to the given point.
theShape | Any shape. |
thePoint | Point, close to the desired shape. |
theShapeType | Defines what kind of sub-shapes is searched 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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.CheckCompoundOfBlocks(), geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeBlockExplode | ( | self, | |
theCompound, | |||
theMinNbFaces, | |||
theMaxNbFaces, | |||
theName = None |
|||
) |
Get all the blocks, contained in the given compound.
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def GetBlockNearPoint | ( | self, | |
theCompound, | |||
thePoint, | |||
theName = None |
|||
) |
Find block, containing the given point inside its volume or on boundary.
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
Example
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetBlockByParts | ( | self, | |
theCompound, | |||
theParts, | |||
theName = None |
|||
) |
Find block, containing all the elements, passed as the parts, or maximum quantity of them.
theCompound | Compound, to find block in. |
theParts | List of faces and/or edges and/or vertices to be parts of the found block. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def GetBlocksByParts | ( | self, | |
theCompound, | |||
theParts, | |||
theName = None |
|||
) |
Return all blocks, containing all the elements, passed as the parts.
theCompound | Compound, to find blocks in. |
theParts | List of faces and/or edges and/or vertices to be parts of the found blocks. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
Example
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeMultiTransformation1D | ( | self, | |
Block, | |||
DirFace1, | |||
DirFace2, | |||
NbTimes, | |||
theName = None |
|||
) |
Multi-transformate block and glue the result.
Transformation is defined so, as to superpose direction faces.
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.MakeMultiTransformation2D(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeMultiTransformation2D | ( | self, | |
Block, | |||
DirFace1U, | |||
DirFace2U, | |||
NbTimesU, | |||
DirFace1V, | |||
DirFace2V, | |||
NbTimesV, | |||
theName = None |
|||
) |
Multi-transformate block and glue the result.
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def Propagate | ( | self, | |
theShape, | |||
theName = None |
|||
) |
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.
theShape | Shape to build propagation groups on. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.BlocksOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().