OpenCascade.js
API ReferenceModelingAlgorithmsTKPrim

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)
    • Index
    • Type
    • Closed
    • BegInf
    • EndInf

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)
    • Index
    • Type
    • Closed
    • BegInf
    • EndInf
  • 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)

Sweep_NumShapeTool

This class provides the indexation and type analysis services required by the NumShape Directing Shapes of Swept Primitives.

Constructors(1)

Instance methods(9)