OCC.ShapeProcessAPI module

class ShapeProcessAPI_ApplySequence(*args)

Bases: object

  • Creates an object and loads resource file and sequence of operators given by their names.
Parameters:
  • rscName (char *) –
  • seqName (char *) – default value is
Return type:

None

ClearMap()
  • Clears myMap with accumulated history.
Return type:None
Context()
  • Returns object for managing resource file and sequence of operators.
Return type:Handle_ShapeProcess_ShapeContext
Map()
  • Returns myMap with accumulated history.
Return type:TopTools_DataMapOfShapeShape
PrepareShape()
  • Performs sequence of operators stored in myRsc. If <fillmap> is True adds history ‘shape-shape’ into myMap for shape and its subshapes until level <until> (included). If <until> is TopAbs_SHAPE, all the subshapes are considered.
Parameters:
  • shape (TopoDS_Shape &) –
  • fillmap (bool) – default value is Standard_False
  • until (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type:

TopoDS_Shape

PrintPreparationResult()
  • Prints result of preparation onto the messenger of the context. Note that results can be accumulated from previous preparations it method ClearMap was not called before PrepareShape.
Return type:None
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases