OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepSweep_Rotation Class Reference

    Provides an algorithm to build object by Rotation sweep. More...

    #include <BRepSweep_Rotation.hxx>

    Inheritance diagram for BRepSweep_Rotation:

    Public Member Functions

     BRepSweep_Rotation (const TopoDS_Shape &S, const Sweep_NumShape &N, const TopLoc_Location &L, const gp_Ax1 &A, const double D, const bool C)
     Creates a topology by rotating around A with the angle D.
    TopoDS_Shape MakeEmptyVertex (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV) override
     Builds the vertex addressed by [aGenV,aDirV], with its geometric part, but without subcomponents.
    TopoDS_Shape MakeEmptyDirectingEdge (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE) override
     Builds the edge addressed by [aGenV,aDirE], with its geometric part, but without subcomponents.
    TopoDS_Shape MakeEmptyGeneratingEdge (const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV) override
     Builds the edge addressed by [aGenE,aDirV], with its geometric part, but without subcomponents.
    void SetParameters (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV) override
     Sets the parameters of the new vertex on the new face. The new face and new vertex where generated from aGenF, aGenV and aDirV .
    void SetDirectingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV) override
     Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenV aDirE, and aDirV.
    void SetGeneratingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV) override
     Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenE, aGenV and aDirV .
    TopoDS_Shape MakeEmptyFace (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) override
     Builds the face addressed by [aGenS,aDirS], with its geometric part, but without subcomponents. The couple aGenS, aDirS can be a "generating face and a directing vertex" or "a generating edge and a directing edge".
    void SetPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV, const TopAbs_Orientation orien) override
     Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenF, aGenE and aDirV.
    void SetGeneratingPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV, const TopAbs_Orientation orien) override
     Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aDirV.
    void SetDirectingPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const TopAbs_Orientation orien) override
     Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aGenV.
    TopAbs_Orientation DirectSolid (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) override
     Returns the Orientation of the shell in the solid generated by the face aGenS with the edge aDirS. It is REVERSED if the surface is swept in the direction of the normal.
    bool GGDShapeIsToAdd (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const TopoDS_Shape &aSubGenS, const Sweep_NumShape &aDirS) const override
     Returns true if aNewSubShape (addressed by aSubGenS and aDirS) must be added in aNewShape (addressed by aGenS and aDirS).
    bool GDDShapeIsToAdd (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS, const Sweep_NumShape &aSubDirS) const override
     Returns true if aNewSubShape (addressed by aGenS and aSubDirS) must be added in aNewShape (addressed by aGenS and aDirS).
    bool SeparatedWires (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const TopoDS_Shape &aSubGenS, const Sweep_NumShape &aDirS) const override
     In some particular cases the topology of a generated face must be composed of independent closed wires, in this case this function returns true. The only case in which the function may return true is a planar face in a closed revol.
    TopoDS_Shape SplitShell (const TopoDS_Shape &aNewShape) const override
     In some particular cases the topology of a generated Shell must be composed of independent closed Shells, in this case this function returns a Compound of independent Shells.
    bool HasShape (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) const override
     Returns true if aDirS and aGenS addresses a resulting Shape. In some specific cases the shape can be geometrically inexsistant, then this function returns false.
    bool IsInvariant (const TopoDS_Shape &aGenS) const override
     Returns true when the geometry of aGenS is not modified by the rotation.
    gp_Ax1 Axe () const
     returns the axis
    double Angle () const
     returns the angle.
    Public Member Functions inherited from BRepSweep_Trsf
    void Init ()
     ends the construction of the swept primitive calling the virtual geometric functions that can't be called in the initialize.
    bool Process (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirV)
     function called to analyze the way of construction of the shapes generated by aGenS and aDirV.
    void SetContinuity (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) override
     Called to propagate the continuity of every vertex between two edges of the generating wire aGenS on the generated edge and faces.
    Public Member Functions inherited from BRepSweep_NumLinearRegularSweep
    virtual ~BRepSweep_NumLinearRegularSweep ()
    TopoDS_Shape Shape (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
     Returns the resulting Shape indexed by aDirS and aGenS.
    TopoDS_Shape Shape (const TopoDS_Shape &aGenS)
     Returns the resulting Shape indexed by myDirWire and aGenS.
    bool IsUsed (const TopoDS_Shape &aGenS) const
     Returns true if the initial shape aGenS is used in result shape.
    bool GenIsUsed (const TopoDS_Shape &theS) const
     Returns true if the shape, generated from theS is used in result shape.
    TopoDS_Shape Shape ()
     Returns the resulting Shape indexed by myDirWire and myGenShape.
    TopoDS_Shape FirstShape ()
     Returns the resulting Shape indexed by the first Vertex of myDirWire and myGenShape.
    TopoDS_Shape LastShape ()
     Returns the resulting Shape indexed by the last Vertex of myDirWire and myGenShape.
    TopoDS_Shape FirstShape (const TopoDS_Shape &aGenS)
     Returns the resulting Shape indexed by the first Vertex of myDirWire and aGenS.
    TopoDS_Shape LastShape (const TopoDS_Shape &aGenS)
     Returns the resulting Shape indexed by the last Vertex of myDirWire and aGenS.
    bool Closed () const

    Additional Inherited Members

    Protected Member Functions inherited from BRepSweep_Trsf
     BRepSweep_Trsf (const BRep_Builder &aBuilder, const TopoDS_Shape &aGenShape, const Sweep_NumShape &aDirWire, const TopLoc_Location &aLocation, const bool aCopy)
     Initialize the Trsf BrepSweep, if aCopy is true the basis elements are shared as often as possible, else everything is copied.
    Protected Member Functions inherited from BRepSweep_NumLinearRegularSweep
     BRepSweep_NumLinearRegularSweep (const BRepSweep_Builder &aBuilder, const TopoDS_Shape &aGenShape, const Sweep_NumShape &aDirWire)
     Creates a NumLinearRegularSweep. <aBuilder> gives basic topological services.
    Protected Attributes inherited from BRepSweep_Trsf
    TopLoc_Location myLocation
    bool myCopy
    Protected Attributes inherited from BRepSweep_NumLinearRegularSweep
    BRepSweep_Builder myBuilder
    TopoDS_Shape myGenShape
    Sweep_NumShape myDirWire
    BRepSweep_Tool myGenShapeTool
    Sweep_NumShapeTool myDirShapeTool
    NCollection_Array2< TopoDS_Shape > myShapes
    NCollection_Array2< bool > myBuiltShapes
    NCollection_Array2< bool > myUsedShapes

    Detailed Description

    Provides an algorithm to build object by Rotation sweep.

    Constructor & Destructor Documentation

    ◆ BRepSweep_Rotation()

    BRepSweep_Rotation::BRepSweep_Rotation ( const TopoDS_Shape & S,
    const Sweep_NumShape & N,
    const TopLoc_Location & L,
    const gp_Ax1 & A,
    const double D,
    const bool C )

    Creates a topology by rotating around A with the angle D.

    Member Function Documentation

    ◆ Angle()

    double BRepSweep_Rotation::Angle ( ) const

    returns the angle.

    ◆ Axe()

    gp_Ax1 BRepSweep_Rotation::Axe ( ) const

    returns the axis

    ◆ DirectSolid()

    TopAbs_Orientation BRepSweep_Rotation::DirectSolid ( const TopoDS_Shape & aGenS,
    const Sweep_NumShape & aDirS )
    overridevirtual

    Returns the Orientation of the shell in the solid generated by the face aGenS with the edge aDirS. It is REVERSED if the surface is swept in the direction of the normal.

    Implements BRepSweep_NumLinearRegularSweep.

    ◆ GDDShapeIsToAdd()

    bool BRepSweep_Rotation::GDDShapeIsToAdd ( const TopoDS_Shape & aNewShape,
    const TopoDS_Shape & aNewSubShape,
    const TopoDS_Shape & aGenS,
    const Sweep_NumShape & aDirS,
    const Sweep_NumShape & aSubDirS ) const
    overridevirtual

    Returns true if aNewSubShape (addressed by aGenS and aSubDirS) must be added in aNewShape (addressed by aGenS and aDirS).

    Implements BRepSweep_Trsf.

    ◆ GGDShapeIsToAdd()

    bool BRepSweep_Rotation::GGDShapeIsToAdd ( const TopoDS_Shape & aNewShape,
    const TopoDS_Shape & aNewSubShape,
    const TopoDS_Shape & aGenS,
    const TopoDS_Shape & aSubGenS,
    const Sweep_NumShape & aDirS ) const
    overridevirtual

    Returns true if aNewSubShape (addressed by aSubGenS and aDirS) must be added in aNewShape (addressed by aGenS and aDirS).

    Implements BRepSweep_Trsf.

    ◆ HasShape()

    bool BRepSweep_Rotation::HasShape ( const TopoDS_Shape & aGenS,
    const Sweep_NumShape & aDirS ) const
    overridevirtual

    Returns true if aDirS and aGenS addresses a resulting Shape. In some specific cases the shape can be geometrically inexsistant, then this function returns false.

    Implements BRepSweep_Trsf.

    ◆ IsInvariant()

    bool BRepSweep_Rotation::IsInvariant ( const TopoDS_Shape & aGenS) const
    overridevirtual

    Returns true when the geometry of aGenS is not modified by the rotation.

    Implements BRepSweep_Trsf.

    ◆ MakeEmptyDirectingEdge()

    TopoDS_Shape BRepSweep_Rotation::MakeEmptyDirectingEdge ( const TopoDS_Shape & aGenV,
    const Sweep_NumShape & aDirE )
    overridevirtual

    Builds the edge addressed by [aGenV,aDirE], with its geometric part, but without subcomponents.

    Implements BRepSweep_Trsf.

    ◆ MakeEmptyFace()

    TopoDS_Shape BRepSweep_Rotation::MakeEmptyFace ( const TopoDS_Shape & aGenS,
    const Sweep_NumShape & aDirS )
    overridevirtual

    Builds the face addressed by [aGenS,aDirS], with its geometric part, but without subcomponents. The couple aGenS, aDirS can be a "generating face and a directing vertex" or "a generating edge and a directing edge".

    Implements BRepSweep_Trsf.

    ◆ MakeEmptyGeneratingEdge()

    TopoDS_Shape BRepSweep_Rotation::MakeEmptyGeneratingEdge ( const TopoDS_Shape & aGenE,
    const Sweep_NumShape & aDirV )
    overridevirtual

    Builds the edge addressed by [aGenE,aDirV], with its geometric part, but without subcomponents.

    Implements BRepSweep_Trsf.

    ◆ MakeEmptyVertex()

    TopoDS_Shape BRepSweep_Rotation::MakeEmptyVertex ( const TopoDS_Shape & aGenV,
    const Sweep_NumShape & aDirV )
    overridevirtual

    Builds the vertex addressed by [aGenV,aDirV], with its geometric part, but without subcomponents.

    Implements BRepSweep_Trsf.

    ◆ SeparatedWires()

    bool BRepSweep_Rotation::SeparatedWires ( const TopoDS_Shape & aNewShape,
    const TopoDS_Shape & aNewSubShape,
    const TopoDS_Shape & aGenS,
    const TopoDS_Shape & aSubGenS,
    const Sweep_NumShape & aDirS ) const
    overridevirtual

    In some particular cases the topology of a generated face must be composed of independent closed wires, in this case this function returns true. The only case in which the function may return true is a planar face in a closed revol.

    Implements BRepSweep_Trsf.

    ◆ SetDirectingParameter()

    void BRepSweep_Rotation::SetDirectingParameter ( const TopoDS_Shape & aNewEdge,
    TopoDS_Shape & aNewVertex,
    const TopoDS_Shape & aGenV,
    const Sweep_NumShape & aDirE,
    const Sweep_NumShape & aDirV )
    overridevirtual

    Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenV aDirE, and aDirV.

    Implements BRepSweep_Trsf.

    ◆ SetDirectingPCurve()

    void BRepSweep_Rotation::SetDirectingPCurve ( const TopoDS_Shape & aNewFace,
    TopoDS_Shape & aNewEdge,
    const TopoDS_Shape & aGenE,
    const TopoDS_Shape & aGenV,
    const Sweep_NumShape & aDirE,
    const TopAbs_Orientation orien )
    overridevirtual

    Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aGenV.

    Implements BRepSweep_Trsf.

    ◆ SetGeneratingParameter()

    void BRepSweep_Rotation::SetGeneratingParameter ( const TopoDS_Shape & aNewEdge,
    TopoDS_Shape & aNewVertex,
    const TopoDS_Shape & aGenE,
    const TopoDS_Shape & aGenV,
    const Sweep_NumShape & aDirV )
    overridevirtual

    Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenE, aGenV and aDirV .

    Implements BRepSweep_Trsf.

    ◆ SetGeneratingPCurve()

    void BRepSweep_Rotation::SetGeneratingPCurve ( const TopoDS_Shape & aNewFace,
    TopoDS_Shape & aNewEdge,
    const TopoDS_Shape & aGenE,
    const Sweep_NumShape & aDirE,
    const Sweep_NumShape & aDirV,
    const TopAbs_Orientation orien )
    overridevirtual

    Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aDirV.

    Implements BRepSweep_Trsf.

    ◆ SetParameters()

    void BRepSweep_Rotation::SetParameters ( const TopoDS_Shape & aNewFace,
    TopoDS_Shape & aNewVertex,
    const TopoDS_Shape & aGenF,
    const TopoDS_Shape & aGenV,
    const Sweep_NumShape & aDirV )
    overridevirtual

    Sets the parameters of the new vertex on the new face. The new face and new vertex where generated from aGenF, aGenV and aDirV .

    Implements BRepSweep_Trsf.

    ◆ SetPCurve()

    void BRepSweep_Rotation::SetPCurve ( const TopoDS_Shape & aNewFace,
    TopoDS_Shape & aNewEdge,
    const TopoDS_Shape & aGenF,
    const TopoDS_Shape & aGenE,
    const Sweep_NumShape & aDirV,
    const TopAbs_Orientation orien )
    overridevirtual

    Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenF, aGenE and aDirV.

    Implements BRepSweep_Trsf.

    ◆ SplitShell()

    TopoDS_Shape BRepSweep_Rotation::SplitShell ( const TopoDS_Shape & aNewShape) const
    overridevirtual

    In some particular cases the topology of a generated Shell must be composed of independent closed Shells, in this case this function returns a Compound of independent Shells.

    Reimplemented from BRepSweep_NumLinearRegularSweep.


    The documentation for this class was generated from the following file: