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
    GC_MakeArcOfCircle Class Reference

    Implements construction algorithms for an arc of circle in 3D space. The result is a Geom_TrimmedCurve curve. A MakeArcOfCircle object provides a framework for: More...

    #include <GC_MakeArcOfCircle.hxx>

    Inheritance diagram for GC_MakeArcOfCircle:

    Public Member Functions

     GC_MakeArcOfCircle (const gp_Circ &theCirc, const double theAlpha1, const double theAlpha2, const bool theSense)
     Creates an arc of circle from angular bounds.
     GC_MakeArcOfCircle (const gp_Circ &theCirc, const gp_Pnt &theP, const double theAlpha, const bool theSense)
     Creates an arc of circle from a point and an angular bound.
     GC_MakeArcOfCircle (const gp_Circ &theCirc, const gp_Pnt &theP1, const gp_Pnt &theP2, const bool theSense)
     Creates an arc of circle from two points on the circle.
     GC_MakeArcOfCircle (const gp_Pnt &theP1, const gp_Pnt &theP2, const gp_Pnt &theP3)
     Creates an arc of circle passing through three points.
     GC_MakeArcOfCircle (const gp_Pnt &theP1, const gp_Vec &theV, const gp_Pnt &theP2)
     Creates an arc of circle from two points and a tangent at the first point.
    const occ::handle< Geom_TrimmedCurve > & Value () const
     Returns the constructed arc of circle. Exceptions StdFail_NotDone if no arc of circle is constructed.
     operator const occ::handle< Geom_TrimmedCurve > & () const
     Conversion operator returning the constructed object.
    Public Member Functions inherited from GC_Root
    bool IsDone () const
     Returns true if the construction is successful.
    bool IsError () const
     Returns true if the construction has failed.
    gce_ErrorType Status () const
     Returns the status of the construction:

    Additional Inherited Members

    Protected Attributes inherited from GC_Root
    gce_ErrorType TheError

    Detailed Description

    Implements construction algorithms for an arc of circle in 3D space. The result is a Geom_TrimmedCurve curve. A MakeArcOfCircle object provides a framework for:

    • defining the construction of the arc of circle,
    • implementing the construction algorithm, and
    • consulting the results. In particular, the Value function returns the constructed arc of circle.

    Constructor & Destructor Documentation

    ◆ GC_MakeArcOfCircle() [1/5]

    GC_MakeArcOfCircle::GC_MakeArcOfCircle ( const gp_Circ & theCirc,
    const double theAlpha1,
    const double theAlpha2,
    const bool theSense )

    Creates an arc of circle from angular bounds.

    Parameters
    [in]theCircsource circle
    [in]theAlpha1first angle (radians)
    [in]theAlpha2second angle (radians)
    [in]theSenseorientation of resulting arc

    ◆ GC_MakeArcOfCircle() [2/5]

    GC_MakeArcOfCircle::GC_MakeArcOfCircle ( const gp_Circ & theCirc,
    const gp_Pnt & theP,
    const double theAlpha,
    const bool theSense )

    Creates an arc of circle from a point and an angular bound.

    Parameters
    [in]theCircsource circle
    [in]thePpoint on circle
    [in]theAlphatarget angle (radians)
    [in]theSenseorientation of resulting arc

    ◆ GC_MakeArcOfCircle() [3/5]

    GC_MakeArcOfCircle::GC_MakeArcOfCircle ( const gp_Circ & theCirc,
    const gp_Pnt & theP1,
    const gp_Pnt & theP2,
    const bool theSense )

    Creates an arc of circle from two points on the circle.

    Parameters
    [in]theCircsource circle
    [in]theP1first point on circle
    [in]theP2second point on circle
    [in]theSenseorientation of resulting arc

    ◆ GC_MakeArcOfCircle() [4/5]

    GC_MakeArcOfCircle::GC_MakeArcOfCircle ( const gp_Pnt & theP1,
    const gp_Pnt & theP2,
    const gp_Pnt & theP3 )

    Creates an arc of circle passing through three points.

    Parameters
    [in]theP1first point
    [in]theP2second point
    [in]theP3third point

    ◆ GC_MakeArcOfCircle() [5/5]

    GC_MakeArcOfCircle::GC_MakeArcOfCircle ( const gp_Pnt & theP1,
    const gp_Vec & theV,
    const gp_Pnt & theP2 )

    Creates an arc of circle from two points and a tangent at the first point.

    Parameters
    [in]theP1start point
    [in]theVtangent vector at start point
    [in]theP2end point
    Note
    The tangent direction is given by the input vector. The orientation of the arc is:
    • the sense determined by the order of the three input points;
    • the sense defined by the input vector; or
    • for the other constructors:
    • the sense of the source circle if the orientation flag is true, or
    • the opposite sense if theSense is false.
    Angles are expressed in radians.
    Construction fails with gce_ConfusedPoints if theP1 and theP2 are coincident.
    Construction fails with gce_IntersectionError if the supporting lines used to define circle center do not intersect.

    Member Function Documentation

    ◆ operator const occ::handle< Geom_TrimmedCurve > &()

    GC_MakeArcOfCircle::operator const occ::handle< Geom_TrimmedCurve > & ( ) const
    inline

    Conversion operator returning the constructed object.

    Returns
    resulting object

    ◆ Value()

    const occ::handle< Geom_TrimmedCurve > & GC_MakeArcOfCircle::Value ( ) const

    Returns the constructed arc of circle. Exceptions StdFail_NotDone if no arc of circle is constructed.

    Returns
    resulting arc

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