Sweep
OCCT package Sweep: Sweep_NumShape, Sweep_NumShapeIterator, Sweep_NumShapeTool.
Sweep_NumShape
Gives a simple indexed representation of a Directing Edge topology.
Constructors(2)
Creates a dummy indexed edge.
- constructor(Index: number, Type: TopAbs_ShapeEnum, Closed?: boolean, BegInf?: boolean, EndInf?: boolean): Sweep_NumShape
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 beginning, 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 (5)IndexTypeClosedBegInfEndInf
Instance methods(7)
- Init(Index: number, Type: TopAbs_ShapeEnum, Closed?: boolean, BegInf?: boolean, EndInf?: boolean): void
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 beginning, 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 (5)IndexTypeClosedBegInfEndInf
- Index(): number
- Closed(): boolean
- BegInfinite(): boolean
- EndInfinite(): boolean
Sweep_NumShapeIterator
This class provides iteration services required by the Swept Primitives for a Directing NumShape Line.
Constructors(1)
Instance methods(5)
- Init(aShape: Sweep_NumShape): void
Reset the NumShapeIterator on sub-shapes of <aShape>.
Parameters (1)aShape
- More(): boolean
Returns True if there is a current sub-shape.
- Next(): void
Moves to the next sub-shape.
Returns the current sub-shape.
Returns the orientation of the current sub-shape.
Sweep_NumShapeTool
This class provides the indexation and type analysis services required by the NumShape Directing Shapes of Swept Primitives.
Constructors(1)
- constructor(aShape: Sweep_NumShape): Sweep_NumShapeTool
Create a new NumShapeTool with <aShape>. The Tool must prepare an indexation for all the subshapes of this shape.
Parameters (1)aShape
Instance methods(9)
- NbShapes(): number
Returns the number of subshapes in the shape.
- Index(aShape: Sweep_NumShape): number
Returns the index of <aShape>.
Parameters (1)aShape
- Shape(anIndex: number): Sweep_NumShape
Returns the Shape at index anIndex.
Parameters (1)anIndex
- Type(aShape: Sweep_NumShape): TopAbs_ShapeEnum
Returns the type of <aShape>.
Parameters (1)aShape
- Orientation(aShape: Sweep_NumShape): TopAbs_Orientation
Returns the orientation of <aShape>.
Parameters (1)aShape
- HasFirstVertex(): boolean
Returns true if there is a First Vertex in the Shape.
- HasLastVertex(): boolean
Returns true if there is a Last Vertex in the Shape.
Returns the first vertex.
Returns the last vertex.