Functions | |
| def | CheckCompoundOfBlocks |
| Check, if the compound of blocks is given. More... | |
| def | GetNonBlocks |
| Retrieve all non blocks solids and faces from theShape. More... | |
| def | RemoveExtraEdges |
| Remove all seam and degenerated edges from theShape. More... | |
| def | UnionFaces |
| Performs union faces of theShape Unite faces sharing one surface. More... | |
| def | CheckAndImprove |
| Check, if the given shape is a blocks compound. More... | |
| def CheckCompoundOfBlocks | ( | self, | |
| theCompound, | |||
theIsUseC1 = False, |
|||
theAngTolerance = 1.e-12 |
|||
| ) |
Check, if the compound of blocks is given.
To be considered as a compound of blocks, the given shape must satisfy the following conditions:
| theCompound | The compound to check. |
| theIsUseC1 | Flag to check if there are 4 bounds on a face taking into account C1 continuity. |
| theAngTolerance | the angular tolerance to check if two neighbor edges are codirectional in the common vertex with this tolerance. This parameter is used only if theIsUseC1 is set to True. |
References geomBuilder.BlocksOp, geomBuilder.GetNonBlocks(), geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def GetNonBlocks | ( | self, | |
| theShape, | |||
theIsUseC1 = False, |
|||
theAngTolerance = 1.e-12, |
|||
theName = None |
|||
| ) |
Retrieve all non blocks solids and faces from theShape.
| theShape | The shape to explore. |
| theIsUseC1 | Flag to check if there are 4 bounds on a face taking into account C1 continuity. |
| theAngTolerance | the angular tolerance to check if two neighbor edges are codirectional in the common vertex with this tolerance. This parameter is used only if theIsUseC1 is set to True. |
| 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 RemoveExtraEdges | ( | self, | |
| theShape, | |||
doUnionFaces = False, |
|||
theName = None |
|||
| ) |
Remove all seam and degenerated edges from theShape.
Unite faces and edges, sharing one surface. It means that this faces must have references to one C++ surface object (handle).
| theShape | The compound or single solid to remove irregular edges from. |
| doUnionFaces | If True, then unite faces. If False (the default value), do not unite faces. |
| 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 UnionFaces | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
Performs union faces of theShape Unite faces sharing one surface.
It means that these faces must have references to one C++ surface object (handle).
| theShape | The compound or single solid that contains faces to perform union. |
| 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 CheckAndImprove | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
Check, if the given shape is a blocks compound.
Fix all detected errors.
| theShape | The compound to check and improve. |
| 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().