SALOME documentation central

Repairing Operations
[Transforming geometrical objects]

Functions

def geompy.ChangeOrientation
 Reverses an orientation the given shape.
def geompy.OrientationChange
 Shortcut to ChangeOrientation().
def geompy.ProcessShape
 Apply a sequence of Shape Healing operators to the given object.
def geompy.SuppressFaces
 Remove faces from the given object (shape).
def geompy.MakeSewing
 Sewing of some shapes into single shape.
def geompy.Sew
 Sewing of the given object.
def geompy.SuppressInternalWires
 Remove internal wires and edges from the given object (face).
def geompy.SuppressHoles
 Remove internal closed contours (holes) from the given object.
def geompy.CloseContour
 Close an open wire.
def geompy.DivideEdge
 Addition of a point to a given edge object.
def geompy.ChangeOrientationShell
 Change orientation of the given object.
def geompy.ChangeOrientationShellCopy
 Change orientation of the given object.
def geompy.GetFreeBoundary
 Get a list of wires (wrapped in GEOM_Object-s), that constitute a free boundary of the given shape.
def geompy.MakeGlueFaces
 Replace coincident faces in theShape by one face.
def geompy.GetGlueFaces
 Find coincident faces in theShape for possible gluing.
def geompy.MakeGlueFacesByList
 Replace coincident faces in theShape by one face in compliance with given list of faces.

Function Documentation

def geompy.ChangeOrientation (   self,
  theShape 
)

Reverses an orientation the given shape.

Parameters:
theShape Shape to be reversed.
Returns:
The reversed copy of theShape.

Example

def geompy.OrientationChange (   self,
  theShape 
)
def geompy.ProcessShape (   self,
  theShape,
  theOperators,
  theParameters,
  theValues 
)

Apply a sequence of Shape Healing operators to the given object.

Parameters:
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.
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.SuppressFaces (   self,
  theObject,
  theFaces 
)

Remove faces from the given object (shape).

Parameters:
theObject Shape to be processed.
theFaces Indices of faces to be removed, if EMPTY then the method removes ALL faces of the given object.
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.MakeSewing (   self,
  ListShape,
  theTolerance 
)

Sewing of some shapes into single shape.

Example

def geompy.Sew (   self,
  theObject,
  theTolerance 
)

Sewing of the given object.

Parameters:
theObject Shape to be processed.
theTolerance Required tolerance value.
Returns:
New GEOM_Object, containing processed shape.
def geompy.SuppressInternalWires (   self,
  theObject,
  theWires 
)

Remove internal wires and edges from the given object (face).

Parameters:
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.
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.SuppressHoles (   self,
  theObject,
  theWires 
)

Remove internal closed contours (holes) from the given object.

Parameters:
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
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.CloseContour (   self,
  theObject,
  theWires,
  isCommonVertex 
)

Close an open wire.

Parameters:
theObject Shape to be processed.
theWires Indexes of edge(s) and wire(s) to be closed within theObject's shape, if -1, then theObject itself is a wire.
isCommonVertex If TRUE : closure by creation of a common vertex, If FALS : closure by creation of an edge between ends.
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.DivideEdge (   self,
  theObject,
  theEdgeIndex,
  theValue,
  isByParameter 
)

Addition of a point to a given edge object.

Parameters:
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]
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.ChangeOrientationShell (   self,
  theObject 
)

Change orientation of the given object.

Updates given shape.

Parameters:
theObject Shape to be processed.

Example

def geompy.ChangeOrientationShellCopy (   self,
  theObject 
)

Change orientation of the given object.

Parameters:
theObject Shape to be processed.
Returns:
New GEOM_Object, containing processed shape.

Example

def geompy.GetFreeBoundary (   self,
  theObject 
)

Get a list of wires (wrapped in GEOM_Object-s), that constitute a free boundary of the given shape.

Parameters:
theObject Shape to get free boundary of.
Returns:
[status, theClosedWires, theOpenWires] status: FALSE, if an error(s) occured during the method execution. theClosedWires: Closed wires on the free boundary of the given shape. theOpenWires: Open wires on the free boundary of the given shape.

Example

def geompy.MakeGlueFaces (   self,
  theShape,
  theTolerance,
  doKeepNonSolids = True 
)

Replace coincident faces in theShape by one face.

Parameters:
theShape Initial shape.
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.
Returns:
New GEOM_Object, containing a copy of theShape without coincident faces.

Example

def geompy.GetGlueFaces (   self,
  theShape,
  theTolerance 
)

Find coincident faces in theShape for possible gluing.

Parameters:
theShape Initial shape.
theTolerance Maximum distance between faces, which can be considered as coincident.
Returns:
ListOfGO.

Example

def geompy.MakeGlueFacesByList (   self,
  theShape,
  theTolerance,
  theFaces,
  doKeepNonSolids = True 
)

Replace coincident faces in theShape by one face in compliance with given list of faces.

Parameters:
theShape Initial shape.
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.
Returns:
New GEOM_Object, containing a copy of theShape without some faces.

Example

 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS