OCC.Core.Sweep module¶
Sweep module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_sweep.html
-
class
Sweep_NumShape
(*args)¶ Bases:
object
- Creates a dummy indexed edge.
- rtype
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.
- param Index
- type Index
int
- param Type
- type Type
TopAbs_ShapeEnum
- param Closed
default value is Standard_False
- type Closed
bool
- param BegInf
default value is Standard_False
- type BegInf
bool
- param EndInf
default value is Standard_False
- type EndInf
bool
- rtype
None
-
Init
()¶ - Reinitialize a simple indexed edge. //! For an EdgeIndex 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 VertexIndex 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.
- param Index
- type Index
int
- param Type
- type Type
TopAbs_ShapeEnum
- param Closed
default value is Standard_False
- type Closed
bool
- param BegInf
default value is Standard_False
- type BegInf
bool
- param EndInf
default value is Standard_False
- type EndInf
bool
- rtype
None
-
Orientation
()¶ - Return type
TopAbs_Orientation
-
Type
()¶ - Return type
TopAbs_ShapeEnum
-
property
thisown
¶ The membership flag
-
class
Sweep_NumShapeIterator
(*args)¶ Bases:
object
- Return type
-
Init
()¶ - Resest the NumShapeIterator on sub-shapes of <aShape>.
- param aShape
- type aShape
Sweep_NumShape
- rtype
None
-
More
()¶ - Returns True if there is a current sub-shape.
- rtype
bool
-
Next
()¶ - Moves to the next sub-shape.
- rtype
None
-
Orientation
()¶ - Returns the orientation of the current sub-shape.
- rtype
TopAbs_Orientation
-
Value
()¶ - Returns the current sub-shape.
- rtype
Sweep_NumShape
-
property
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.
- param aShape
- type aShape
Sweep_NumShape
- rtype
None
-
FirstVertex
()¶ - Returns the first vertex.
- rtype
Sweep_NumShape
-
HasFirstVertex
()¶ - Returns true if there is a First Vertex in the Shape.
- rtype
bool
-
HasLastVertex
()¶ - Returns true if there is a Last Vertex in the Shape.
- rtype
bool
-
Index
()¶ - Returns the index of <aShape>.
- param aShape
- type aShape
Sweep_NumShape
- rtype
int
-
LastVertex
()¶ - Returns the last vertex.
- rtype
Sweep_NumShape
-
NbShapes
()¶ - Returns the number of subshapes in the shape.
- rtype
int
-
Orientation
()¶ - Returns the orientation of <aShape>.
- param aShape
- type aShape
Sweep_NumShape
- rtype
TopAbs_Orientation
-
Shape
()¶ - Returns the Shape at index anIndex
- param anIndex
- type anIndex
int
- rtype
Sweep_NumShape
-
Type
()¶ - Returns the type of <aShape>.
- param aShape
- type aShape
Sweep_NumShape
- rtype
TopAbs_ShapeEnum
-
property
thisown
¶ The membership flag