OCC.Sweep module

class Sweep_NumShape(*args)

Bases: object

  • Creates a dummy indexed edge.
Return type:None
  • Creates a new simple indexed edge. //! For an Edge : Index is the number of vertices (0, 1 or 2),Type is TopAbs_EDGE, Closed is true if it is a closed edge, BegInf is true if the Edge is infinite at the begenning, EndInf is true if the edge is infinite at the end. //! For a Vertex : Index is the index of the vertex in the edge (1 or 2), Type is TopAbsVERTEX, all the other fields have no meanning.
Parameters:
  • Index (int) –
  • Type (TopAbs_ShapeEnum) –
  • Closed (bool) – default value is Standard_False
  • BegInf (bool) – default value is Standard_False
  • EndInf (bool) – default value is Standard_False
Return type:

None

BegInfinite()
Return type:bool
Closed()
Return type:bool
EndInfinite()
Return type:bool
Index()
Return type:int
Init()
  • Reinitialize a simple indexed edge. //! For an Edge : Index is the number of vertices (0, 1 or 2),Type is TopAbs_EDGE, Closed is true if it is a closed edge, BegInf is true if the Edge is infinite at the begenning, EndInf is true if the edge is infinite at the end. //! For a Vertex : Index is the index of the vertex in the edge (1 or 2), Type is TopAbsVERTEX, Closed is true if it is the vertex of a closed edge, all the other fields have no meanning.
Parameters:
  • Index (int) –
  • Type (TopAbs_ShapeEnum) –
  • Closed (bool) – default value is Standard_False
  • BegInf (bool) – default value is Standard_False
  • EndInf (bool) – default value is Standard_False
Return type:

None

Orientation()
Return type:TopAbs_Orientation
Type()
Return type:TopAbs_ShapeEnum
thisown

The membership flag

class Sweep_NumShapeIterator(*args)

Bases: object

Return type:None
Init()
  • Resest the NumShapeIterator on sub-shapes of <aShape>.
Parameters:aShape (Sweep_NumShape &) –
Return type:None
More()
  • Returns True if there is a current sub-shape.
Return type:bool
Next()
  • Moves to the next sub-shape.
Return type:None
Orientation()
  • Returns the orientation of the current sub-shape.
Return type:TopAbs_Orientation
Value()
  • Returns the current sub-shape.
Return type:Sweep_NumShape
thisown

The membership flag

class Sweep_NumShapeTool(*args)

Bases: object

  • Create a new NumShapeTool with <aShape>. The Tool must prepare an indexation for all the subshapes of this shape.
Parameters:aShape (Sweep_NumShape &) –
Return type:None
FirstVertex()
  • Returns the first vertex.
Return type:Sweep_NumShape
HasFirstVertex()
  • Returns true if there is a First Vertex in the Shape.
Return type:bool
HasLastVertex()
  • Returns true if there is a Last Vertex in the Shape.
Return type:bool
Index()
  • Returns the index of <aShape>.
Parameters:aShape (Sweep_NumShape &) –
Return type:int
LastVertex()
  • Returns the last vertex.
Return type:Sweep_NumShape
NbShapes()
  • Returns the number of subshapes in the shape.
Return type:int
Orientation()
  • Returns the orientation of <aShape>.
Parameters:aShape (Sweep_NumShape &) –
Return type:TopAbs_Orientation
Shape()
  • Returns the Shape at index anIndex
Parameters:anIndex (int) –
Return type:Sweep_NumShape
Type()
  • Returns the type of <aShape>.
Parameters:aShape (Sweep_NumShape &) –
Return type:TopAbs_ShapeEnum
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