OCC.Sweep module

class OCC.Sweep.Sweep_NumShape(*args)

Bases: object

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 (Standard_Integer) –
  • 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

  • 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 (Standard_Integer) –
  • 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

  • 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 (Standard_Integer) –
  • 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

  • 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 (Standard_Integer) –
  • 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 OCC.Sweep.Sweep_NumShapeIterator

Bases: object

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 OCC.Sweep.Sweep_NumShapeTool(*args)

Bases: object

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 (Standard_Integer) –
Return type:Sweep_NumShape
Type()
  • Returns the type of <aShape>.
Parameters:aShape (Sweep_NumShape &) –
Return type:TopAbs_ShapeEnum
thisown

The membership flag

class OCC.Sweep.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()