OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    IntRes2d_IntersectionSegment Class Reference

    Definition of an intersection curve between two 2D curves. More...

    #include <IntRes2d_IntersectionSegment.hxx>

    Public Member Functions

     IntRes2d_IntersectionSegment ()
     Empty constructor.
     IntRes2d_IntersectionSegment (const IntRes2d_IntersectionPoint &P1, const IntRes2d_IntersectionPoint &P2, const bool Oppos, const bool ReverseFlag)
     IntRes2d_IntersectionSegment (const IntRes2d_IntersectionPoint &P, const bool First, const bool Oppos, const bool ReverseFlag)
     IntRes2d_IntersectionSegment (const bool Oppos)
     Creates an infinite segment of intersection.
    bool IsOpposite () const
     Returns FALSE if the intersection segment has got the same orientation on both curves.
    bool HasFirstPoint () const
     Returns True if the segment is limited by a first point. This point defines the lowest parameter admitted on the first curve for the segment. If IsOpposite returns False, it defines the lowest parameter on the second curve, otherwise, it is the highest parameter on the second curve.
    const IntRes2d_IntersectionPointFirstPoint () const
     Returns the first point of the segment as an IntersectionPoint (with a transition). The exception DomainError is raised if HasFirstPoint returns False.
    bool HasLastPoint () const
     Returns True if the segment is limited by a last point. This point defines the highest parameter admitted on the first curve for the segment. If IsOpposite returns False, it defines the highest parameter on the second curve, otherwise, it is the lowest parameter on the second curve.
    const IntRes2d_IntersectionPointLastPoint () const
     Returns the last point of the segment as an IntersectionPoint (with a transition). The exception DomainError is raised if HasLastExtremity returns False.

    Detailed Description

    Definition of an intersection curve between two 2D curves.

    Constructor & Destructor Documentation

    ◆ IntRes2d_IntersectionSegment() [1/4]

    IntRes2d_IntersectionSegment::IntRes2d_IntersectionSegment ( )

    Empty constructor.

    ◆ IntRes2d_IntersectionSegment() [2/4]

    IntRes2d_IntersectionSegment::IntRes2d_IntersectionSegment ( const IntRes2d_IntersectionPoint & P1,
    const IntRes2d_IntersectionPoint & P2,
    const bool Oppos,
    const bool ReverseFlag )

    ◆ IntRes2d_IntersectionSegment() [3/4]

    IntRes2d_IntersectionSegment::IntRes2d_IntersectionSegment ( const IntRes2d_IntersectionPoint & P,
    const bool First,
    const bool Oppos,
    const bool ReverseFlag )

    ◆ IntRes2d_IntersectionSegment() [4/4]

    IntRes2d_IntersectionSegment::IntRes2d_IntersectionSegment ( const bool Oppos)

    Creates an infinite segment of intersection.

    Member Function Documentation

    ◆ FirstPoint()

    const IntRes2d_IntersectionPoint & IntRes2d_IntersectionSegment::FirstPoint ( ) const

    Returns the first point of the segment as an IntersectionPoint (with a transition). The exception DomainError is raised if HasFirstPoint returns False.

    ◆ HasFirstPoint()

    bool IntRes2d_IntersectionSegment::HasFirstPoint ( ) const

    Returns True if the segment is limited by a first point. This point defines the lowest parameter admitted on the first curve for the segment. If IsOpposite returns False, it defines the lowest parameter on the second curve, otherwise, it is the highest parameter on the second curve.

    ◆ HasLastPoint()

    bool IntRes2d_IntersectionSegment::HasLastPoint ( ) const

    Returns True if the segment is limited by a last point. This point defines the highest parameter admitted on the first curve for the segment. If IsOpposite returns False, it defines the highest parameter on the second curve, otherwise, it is the lowest parameter on the second curve.

    ◆ IsOpposite()

    bool IntRes2d_IntersectionSegment::IsOpposite ( ) const

    Returns FALSE if the intersection segment has got the same orientation on both curves.

    ◆ LastPoint()

    const IntRes2d_IntersectionPoint & IntRes2d_IntersectionSegment::LastPoint ( ) const

    Returns the last point of the segment as an IntersectionPoint (with a transition). The exception DomainError is raised if HasLastExtremity returns False.


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