OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepOffsetAPI_MakePipe Class Reference

    Describes functions to build pipes. A pipe is built a basis shape (called the profile) along a wire (called the spine) by sweeping. The profile must not contain solids. A MakePipe object provides a framework for: More...

    #include <BRepOffsetAPI_MakePipe.hxx>

    Inheritance diagram for BRepOffsetAPI_MakePipe:

    Public Member Functions

     BRepOffsetAPI_MakePipe (const TopoDS_Wire &Spine, const TopoDS_Shape &Profile)
     Constructs a pipe by sweeping the shape Profile along the wire Spine.The angle made by the spine with the profile is maintained along the length of the pipe. Warning Spine must be G1 continuous; that is, on the connection vertex of two edges of the wire, the tangent vectors on the left and on the right must have the same direction, though not necessarily the same magnitude. Exceptions Standard_DomainError if the profile is a solid or a composite solid.
     BRepOffsetAPI_MakePipe (const TopoDS_Wire &Spine, const TopoDS_Shape &Profile, const GeomFill_Trihedron aMode, const bool ForceApproxC1=false)
     the same as previous but with setting of mode of sweep and the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
    const BRepFill_PipePipe () const
    void Build (const Message_ProgressRange &theRange=Message_ProgressRange()) override
     Builds the resulting shape (redefined from MakeShape).
    TopoDS_Shape FirstShape () override
     Returns the TopoDS Shape of the bottom of the prism.
    TopoDS_Shape LastShape () override
     Returns the TopoDS Shape of the top of the prism.
    const NCollection_List< TopoDS_Shape > & Generated (const TopoDS_Shape &S) override
     Returns the list of shapes generated from the shape .
    TopoDS_Shape Generated (const TopoDS_Shape &SSpine, const TopoDS_Shape &SProfile)
    double ErrorOnSurface () const
    Public Member Functions inherited from BRepBuilderAPI_MakeShape
    virtual const TopoDS_ShapeShape ()
     Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.
     operator TopoDS_Shape ()
    virtual const NCollection_List< TopoDS_Shape > & Modified (const TopoDS_Shape &S)
     Returns the list of shapes modified from the shape .
    virtual bool IsDeleted (const TopoDS_Shape &S)
     Returns true if the shape S has been deleted.
    Public Member Functions inherited from BRepBuilderAPI_Command
    virtual ~BRepBuilderAPI_Command ()
    virtual bool IsDone () const
    void Check () const
     Raises NotDone if done is false.

    Additional Inherited Members

    Protected Member Functions inherited from BRepBuilderAPI_MakeShape
     BRepBuilderAPI_MakeShape ()
    Protected Member Functions inherited from BRepBuilderAPI_Command
     BRepBuilderAPI_Command ()
     Set done to False.
    void Done ()
     Set done to true.
    void NotDone ()
     Set done to false.
    Protected Attributes inherited from BRepBuilderAPI_MakeShape
    TopoDS_Shape myShape
    NCollection_List< TopoDS_ShapemyGenerated

    Detailed Description

    Describes functions to build pipes. A pipe is built a basis shape (called the profile) along a wire (called the spine) by sweeping. The profile must not contain solids. A MakePipe object provides a framework for:

    • defining the construction of a pipe,
    • implementing the construction algorithm, and
    • consulting the result. Warning The MakePipe class implements pipe constructions with G1 continuous spines only.

    Constructor & Destructor Documentation

    ◆ BRepOffsetAPI_MakePipe() [1/2]

    BRepOffsetAPI_MakePipe::BRepOffsetAPI_MakePipe ( const TopoDS_Wire & Spine,
    const TopoDS_Shape & Profile )

    Constructs a pipe by sweeping the shape Profile along the wire Spine.The angle made by the spine with the profile is maintained along the length of the pipe. Warning Spine must be G1 continuous; that is, on the connection vertex of two edges of the wire, the tangent vectors on the left and on the right must have the same direction, though not necessarily the same magnitude. Exceptions Standard_DomainError if the profile is a solid or a composite solid.

    ◆ BRepOffsetAPI_MakePipe() [2/2]

    BRepOffsetAPI_MakePipe::BRepOffsetAPI_MakePipe ( const TopoDS_Wire & Spine,
    const TopoDS_Shape & Profile,
    const GeomFill_Trihedron aMode,
    const bool ForceApproxC1 = false )

    the same as previous but with setting of mode of sweep and the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.

    Member Function Documentation

    ◆ Build()

    void BRepOffsetAPI_MakePipe::Build ( const Message_ProgressRange & theRange = Message_ProgressRange())
    overridevirtual

    Builds the resulting shape (redefined from MakeShape).

    Reimplemented from BRepBuilderAPI_MakeShape.

    ◆ ErrorOnSurface()

    double BRepOffsetAPI_MakePipe::ErrorOnSurface ( ) const

    ◆ FirstShape()

    TopoDS_Shape BRepOffsetAPI_MakePipe::FirstShape ( )
    overridevirtual

    Returns the TopoDS Shape of the bottom of the prism.

    Implements BRepPrimAPI_MakeSweep.

    ◆ Generated() [1/2]

    const NCollection_List< TopoDS_Shape > & BRepOffsetAPI_MakePipe::Generated ( const TopoDS_Shape & S)
    overridevirtual

    Returns the list of shapes generated from the shape .

    Reimplemented from BRepBuilderAPI_MakeShape.

    ◆ Generated() [2/2]

    TopoDS_Shape BRepOffsetAPI_MakePipe::Generated ( const TopoDS_Shape & SSpine,
    const TopoDS_Shape & SProfile )

    ◆ LastShape()

    TopoDS_Shape BRepOffsetAPI_MakePipe::LastShape ( )
    overridevirtual

    Returns the TopoDS Shape of the top of the prism.

    Implements BRepPrimAPI_MakeSweep.

    ◆ Pipe()

    const BRepFill_Pipe & BRepOffsetAPI_MakePipe::Pipe ( ) const

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