OCC.ShapeProcessAPI module

class OCC.ShapeProcessAPI.ShapeProcessAPI_ApplySequence(*args)

Bases: object

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

  • 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

  • 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 OCC.ShapeProcessAPI.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()