Functions | |
| def | ChangeOrientation |
| Reverses an orientation the given shape. More... | |
| def | OrientationChange |
| See ChangeOrientation() method for details. More... | |
| def | ProcessShape |
| Apply a sequence of Shape Healing operators to the given object. More... | |
| def | SuppressFaces |
| Remove faces from the given object (shape). More... | |
| def | MakeSewing |
| Sewing of faces into a single shell. More... | |
| def | Sew |
| Sewing of faces into a single shell. More... | |
| def | RemoveInternalFaces |
| Rebuild the topology of theSolids by removing the faces that are shared by several solids. More... | |
| def | SuppressInternalWires |
| Remove internal wires and edges from the given object (face). More... | |
| def | SuppressHoles |
| Remove internal closed contours (holes) from the given object. More... | |
| def | CloseContour |
| Close an open wire. More... | |
| def | DivideEdge |
| Addition of a point to a given edge object. More... | |
| def | DivideEdgeByPoint |
| Addition of points to a given edge of theObject by projecting other points to the given edge. More... | |
| def | FuseCollinearEdgesWithinWire |
| Suppress the vertices in the wire in case if adjacent edges are C1 continuous. More... | |
| def | ChangeOrientationShell |
| Change orientation of the given object. More... | |
| def | ChangeOrientationShellCopy |
| Change orientation of the given object. More... | |
| def | LimitTolerance |
| Try to limit tolerance of the given object by value theTolerance. More... | |
| def | GetFreeBoundary |
| Get a list of wires (wrapped in GEOM.GEOM_Object-s), that constitute a free boundary of the given shape. More... | |
| def | MakeGlueFaces |
| Replace coincident faces in theShapes by one face. More... | |
| def | GetGlueFaces |
| Find coincident faces in theShapes for possible gluing. More... | |
| def | MakeGlueFacesByList |
| Replace coincident faces in theShapes by one face in compliance with given list of faces. More... | |
| def | MakeGlueEdges |
| Replace coincident edges in theShapes by one edge. More... | |
| def | GetGlueEdges |
| Find coincident edges in theShapes for possible gluing. More... | |
| def | MakeGlueEdgesByList |
| Replace coincident edges in theShapes by one edge in compliance with given list of edges. More... | |
| def ChangeOrientation | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
Reverses an orientation the given shape.
| theShape | Shape to be reversed. |
| 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.RaiseIfFailed(), and geomBuilder.ShapesOp.
| def OrientationChange | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
See ChangeOrientation() method for details.
References geomBuilder.ChangeOrientation(), and geomBuilder.ManageTransactions().
| def ProcessShape | ( | self, | |
| theShape, | |||
| theOperators, | |||
| theParameters, | |||
| theValues, | |||
theName = None |
|||
| ) |
Apply a sequence of Shape Healing operators to the given object.
| theShape | Shape to be processed. |
| theOperators | List of names of operators ("FixShape", "SplitClosedFaces", etc.). |
| theParameters | List of names of parameters ("FixShape.Tolerance3d", "SplitClosedFaces.NbSplitPoints", etc.). |
| theValues | List of values of parameters, in the same order as parameters are listed in theParameters list. |
| 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. |
Operators and Parameters:
References geomBuilder._autoPublish(), geomBuilder.HealOp, geomBuilder.ManageTransactions(), geomBuilder.ParseList(), and geomBuilder.RaiseIfFailed().
| def SuppressFaces | ( | self, | |
| theObject, | |||
| theFaces, | |||
theName = None |
|||
| ) |
Remove faces from the given object (shape).
| theObject | Shape to be processed. |
| theFaces | Indices of faces to be removed, if EMPTY then the method removes ALL faces of the given object. |
| 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.HealOp, and geomBuilder.RaiseIfFailed().
| def MakeSewing | ( | self, | |
| ListShape, | |||
| theTolerance, | |||
AllowNonManifold = False, |
|||
theName = None |
|||
| ) |
Sewing of faces into a single shell.
| ListShape | Shapes to be processed. |
| theTolerance | Required tolerance value. |
| AllowNonManifold | Flag that allows non-manifold sewing. |
| 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.ManageTransactions(), and geomBuilder.Sew().
| def Sew | ( | self, | |
| ListShape, | |||
| theTolerance, | |||
AllowNonManifold = False, |
|||
theName = None |
|||
| ) |
Sewing of faces into a single shell.
| ListShape | Shapes to be processed. |
| theTolerance | Required tolerance value. |
| AllowNonManifold | Flag that allows non-manifold sewing. |
| 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.HealOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.ToList().
| def RemoveInternalFaces | ( | self, | |
| theSolids, | |||
theName = None |
|||
| ) |
Rebuild the topology of theSolids by removing the faces that are shared by several solids.
| theSolids | A compound or a list of solids to be processed. |
| 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.HealOp, geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ToList().
| def SuppressInternalWires | ( | self, | |
| theObject, | |||
| theWires, | |||
theName = None |
|||
| ) |
Remove internal wires and edges from the given object (face).
| theObject | Shape to be processed. |
| theWires | Indices of wires to be removed, if EMPTY then the method removes ALL internal wires of the given object. |
| 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.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def SuppressHoles | ( | self, | |
| theObject, | |||
| theWires, | |||
theName = None |
|||
| ) |
Remove internal closed contours (holes) from the given object.
| theObject | Shape to be processed. |
| theWires | Indices of wires to be removed, if EMPTY then the method removes ALL internal holes of the given object |
| 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.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def CloseContour | ( | self, | |
| theObject, | |||
| theWires, | |||
| isCommonVertex, | |||
theName = None |
|||
| ) |
Close an open wire.
| theObject | Shape to be processed. |
| theWires | Indexes of edge(s) and wire(s) to be closed within theObject's shape, if [ ], then theObject itself is a wire. |
| isCommonVertex | If True : closure by creation of a common vertex, If False : closure by creation of an edge between ends. |
| 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.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def DivideEdge | ( | self, | |
| theObject, | |||
| theEdgeIndex, | |||
| theValue, | |||
| isByParameter, | |||
theName = None |
|||
| ) |
Addition of a point to a given edge object.
| theObject | Shape to be processed. |
| theEdgeIndex | Index of edge to be divided within theObject's shape, if -1, then theObject itself is the edge. |
| theValue | Value of parameter on edge or length parameter, depending on isByParameter. |
| isByParameter | If TRUE : theValue is treated as a curve parameter [0..1], if FALSE : theValue is treated as a length parameter [0..1] |
| 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.HealOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
| def DivideEdgeByPoint | ( | self, | |
| theObject, | |||
| theEdgeIndex, | |||
| thePoints, | |||
theName = None |
|||
| ) |
Addition of points to a given edge of theObject by projecting other points to the given edge.
| theObject | Shape to be processed. |
| theEdgeIndex | Index of edge to be divided within theObject's shape, if -1, then theObject itself is the edge. |
| thePoints | List of points to project to theEdgeIndex-th 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.GetSubShapeID(), geomBuilder.HealOp, geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ToList().
| def FuseCollinearEdgesWithinWire | ( | self, | |
| theWire, | |||
theVertices = [], |
|||
theName = None |
|||
| ) |
Suppress the vertices in the wire in case if adjacent edges are C1 continuous.
| theWire | Wire to minimize the number of C1 continuous edges in. |
| theVertices | A list of vertices to suppress. If the list is empty, all vertices in a wire will be assumed. |
| 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.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def ChangeOrientationShell | ( | self, | |
| theObject | |||
| ) |
Change orientation of the given object.
Updates given shape.
| theObject | Shape to be processed. |
Example
References geomBuilder.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def ChangeOrientationShellCopy | ( | self, | |
| theObject, | |||
theName = None |
|||
| ) |
Change orientation of the given object.
| theObject | Shape to be processed. |
| 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.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def LimitTolerance | ( | self, | |
| theObject, | |||
theTolerance = 1e-07, |
|||
theName = None |
|||
| ) |
Try to limit tolerance of the given object by value theTolerance.
| theObject | Shape to be processed. |
| theTolerance | Required tolerance value. |
| 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.HealOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
| def GetFreeBoundary | ( | self, | |
| theObject, | |||
theName = None |
|||
| ) |
Get a list of wires (wrapped in GEOM.GEOM_Object-s), that constitute a free boundary of the given shape.
| theObject | Shape to get free boundary of. |
| 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.HealOp, geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ToList().
| def MakeGlueFaces | ( | self, | |
| theShapes, | |||
| theTolerance, | |||
doKeepNonSolids = True, |
|||
theName = None |
|||
| ) |
Replace coincident faces in theShapes by one face.
| theShapes | Initial shapes, either a list or compound of shapes. |
| theTolerance | Maximum distance between faces, which can be considered as coincident. |
| doKeepNonSolids | If FALSE, only solids will present in the result, otherwise all initial shapes. |
| 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.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.ToList().
| def GetGlueFaces | ( | self, | |
| theShapes, | |||
| theTolerance, | |||
theName = None |
|||
| ) |
Find coincident faces in theShapes for possible gluing.
| theShapes | Initial shapes, either a list or compound of shapes. |
| theTolerance | Maximum distance between faces, which can be considered as coincident. |
| 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.MakeGlueFacesByList(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().
| def MakeGlueFacesByList | ( | self, | |
| theShapes, | |||
| theTolerance, | |||
| theFaces, | |||
doKeepNonSolids = True, |
|||
doGlueAllEdges = True, |
|||
theName = None |
|||
| ) |
Replace coincident faces in theShapes by one face in compliance with given list of faces.
| theShapes | Initial shapes, either a list or compound of shapes. |
| theTolerance | Maximum distance between faces, which can be considered as coincident. |
| theFaces | List of faces for gluing. |
| doKeepNonSolids | If FALSE, only solids will present in the result, otherwise all initial shapes. |
| doGlueAllEdges | If TRUE, all coincident edges of theShape will be glued, otherwise only the edges, belonging to theFaces. |
| 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.ManageTransactions(), and geomBuilder.ToList().
| def MakeGlueEdges | ( | self, | |
| theShapes, | |||
| theTolerance, | |||
theName = None |
|||
| ) |
Replace coincident edges in theShapes by one edge.
| theShapes | Initial shapes, either a list or compound of shapes. |
| theTolerance | Maximum distance between edges, which can be considered as coincident. |
| 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.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.ToList().
| def GetGlueEdges | ( | self, | |
| theShapes, | |||
| theTolerance, | |||
theName = None |
|||
| ) |
Find coincident edges in theShapes for possible gluing.
| theShapes | Initial shapes, either a list or compound of shapes. |
| theTolerance | Maximum distance between edges, which can be considered as coincident. |
| 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.ManageTransactions(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().
| def MakeGlueEdgesByList | ( | self, | |
| theShapes, | |||
| theTolerance, | |||
| theEdges, | |||
theName = None |
|||
| ) |
Replace coincident edges in theShapes by one edge in compliance with given list of edges.
| theShapes | Initial shapes, either a list or compound of shapes. |
| theTolerance | Maximum distance between edges, which can be considered as coincident. |
| theEdges | List of edges for gluing. |
| 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.ManageTransactions(), and geomBuilder.ToList().