OpenCascade.js
API ReferenceModelingAlgorithmsTKPrim

BRepSweep

OCCT package BRepSweep: BRepSweep_Builder, BRepSweep_Iterator, BRepSweep_NumLinearRegularSweep, BRepSweep_Prism, and 5 more bound classes.

BRepSweep_Builder

implements the abstract Builder with the BRep Builder

Constructors(1)

Instance methods(8)

  • MakeCompound(aCompound: TopoDS_Shape): void

    Returns an empty Compound.

    Parameters (1)
    • aCompound
      Mutated in place; read the updated value from this argument after the call.
  • MakeCompSolid(aCompSolid: TopoDS_Shape): void

    Returns an empty CompSolid.

    Parameters (1)
    • aCompSolid
      Mutated in place; read the updated value from this argument after the call.
  • MakeSolid(aSolid: TopoDS_Shape): void

    Returns an empty Solid.

    Parameters (1)
    • aSolid
      Mutated in place; read the updated value from this argument after the call.
  • MakeShell(aShell: TopoDS_Shape): void

    Returns an empty Shell.

    Parameters (1)
    • aShell
      Mutated in place; read the updated value from this argument after the call.
  • MakeWire(aWire: TopoDS_Shape): void

    Returns an empty Wire.

    Parameters (1)
    • aWire
      Mutated in place; read the updated value from this argument after the call.
  • Add(aShape1: TopoDS_Shape, aShape2: TopoDS_Shape, Orient: TopAbs_Orientation): void

    Adds the Shape 1 in the Shape 2, set to <Orient> orientation.

    Parameters (3)
    • aShape1
      Mutated in place; read the updated value from this argument after the call.
    • aShape2
    • Orient
  • Add(aShape1: TopoDS_Shape, aShape2: TopoDS_Shape): void

    Adds the Shape 1 in the Shape 2.

    Parameters (2)
    • aShape1
      Mutated in place; read the updated value from this argument after the call.
    • aShape2

BRepSweep_Iterator

This class provides iteration services required by the Generating Line (TopoDS Shape) of a BRepSweep. This tool is used to iterate on the direct sub-shapes of a Shape.

Constructors(1)

Instance methods(5)

BRepSweep_NumLinearRegularSweep

This a generic class is used to build Sweept primitives with a generating "shape" and a directing "line".
The indexation and type analysis services required for the generatrix are given by <Tool from BRepSweep>.
The indexation and type analysis services required for the directrix are given by <NumShapeTool from Sweep>.
The iteration services required for the generatrix are given by <Iterator from BRepSweep>.
The iteration services required for the directrix are given by <NumShapeIterator from Sweep>.
The topology is like a grid of shapes. Each shape of the grid must be addressable without confusion by one or two objects from the generating or directing shapes. Here are examples of correct associations to address:

  • a vertex : GenVertex - DirVertex
  • an edge : GenVertex - DirEdge
  • : GenEdge - DirVertex
  • a face : GenEdge - DirEdge GenFace - DirVertex ...
    "GenObject" is used to identify an object from the Generating Shape, and "DirObject" from the Directing Shape. So may they be from different types.
    The method Has... is given because in some special cases, a vertex, an edge or a face may be geometricaly nonexistent or not useful.

Instance methods(28)

BRepSweep_Prism

Provides natural constructors to build BRepSweep translated swept Primitives.

Constructors(2)

  • constructor(S: TopoDS_Shape, V: gp_Vec, Copy?: boolean, Canonize?: boolean): BRepSweep_Prism

    Builds the prism of base S and vector V. If C is true, S is copied. If Canonize is true then generated surfaces are attempted to be canonized in simple types.

    Parameters (4)
    • S
    • V
    • Copy
    • Canonize
  • constructor(S: TopoDS_Shape, D: gp_Dir, Inf?: boolean, Copy?: boolean, Canonize?: boolean): BRepSweep_Prism

    Builds a semi-infinite or an infinite prism of base S. If Copy is true S is copied. If Inf is true the prism is infinite, if Inf is false the prism is infinite in the direction D. If Canonize is true then generated surfaces are attempted to be canonized in simple types.

    Parameters (5)
    • S
    • D
    • Inf
    • Copy
    • Canonize

Instance methods(9)

  • Returns the TopoDS Shape attached to the prism.

  • Returns the TopoDS Shape generated with aGenS (subShape of the generating shape).

    Parameters (1)
    • aGenS
  • Returns the TopoDS Shape of the bottom of the prism.

  • Returns the TopoDS Shape of the bottom of the prism. generated with aGenS (subShape of the generating shape).

    Parameters (1)
    • aGenS
  • Returns the TopoDS Shape of the top of the prism.

  • Returns the TopoDS Shape of the top of the prism. generated with aGenS (subShape of the generating shape).

    Parameters (1)
    • aGenS
  • Returns the Vector of the Prism, if it is an infinite prism the Vec is unitar.

  • IsUsed(aGenS: TopoDS_Shape): boolean

    Returns true if the aGenS is used in resulting shape.

    Parameters (1)
    • aGenS
  • GenIsUsed(theS: TopoDS_Shape): boolean

    Returns true if the shape, generated from theS is used in result shape.

    Parameters (1)
    • theS

BRepSweep_Revol

Provides natural constructors to build BRepSweep rotated swept Primitives.

Constructors(2)

Instance methods(9)

BRepSweep_Rotation

Provides an algorithm to build object by Rotation sweep.

Constructors(1)

Instance methods(19)

BRepSweep_Tool

Provides the indexation and type analysis services required by the TopoDS generating Shape of BRepSweep.

Constructors(1)

Instance methods(6)

BRepSweep_Translation

Provides an algorithm to build object by translation sweep.

Constructors(1)

Instance methods(17)

BRepSweep_Trsf

This class is inherited from NumLinearRegularSweep to implement the simple swept primitives built moving a Shape with a Trsf. It often is possible to build the constructed subshapes by a simple move of the generating subshapes (shared topology and geometry). So two ways of construction are proposed:

  • sharing basis elements (the generatrice can be modified, for example PCurves can be added on faces);
  • copying everything.

Instance methods(18)