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: Return type: -
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: Return type:
-
Orientation()¶ Return type: TopAbs_Orientation
-
Type()¶ Return type: TopAbs_ShapeEnum
-
thisown¶ The membership flag
-
class
Sweep_NumShapeIterator(*args)¶ Bases:
objectReturn type: None -
Init()¶ - Resest the NumShapeIterator on sub-shapes of <aShape>.
Parameters: aShape (Sweep_NumShape &) – 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
-
LastVertex()¶ - Returns the last vertex.
Return type: Sweep_NumShape
-
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