OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    gce_MakeElips2d Class Reference

    This class implements construction algorithms for gp_Elips2d. Supported constructions include: More...

    #include <gce_MakeElips2d.hxx>

    Inheritance diagram for gce_MakeElips2d:

    Public Member Functions

     gce_MakeElips2d (const gp_Ax2d &MajorAxis, const double MajorRadius, const double MinorRadius, const bool Sense=true)
     Creates an ellipse with the major axis, the major and the minor radius. The location of the MajorAxis is the center of the ellipse. The sense of parametrization is given by Sense. It is possible to create an ellipse with MajorRadius = MinorRadius.
     gce_MakeElips2d (const gp_Ax22d &A, const double MajorRadius, const double MinorRadius)
     Axis defines the Xaxis and Yaxis of the ellipse which defines the origin and the sense of parametrization. Creates an ellipse with the AxisPlacement the major and the minor radius. The location of Axis is the center of the ellipse. It is possible to create an ellipse with MajorRadius = MinorRadius.
     gce_MakeElips2d (const gp_Pnt2d &S1, const gp_Pnt2d &S2, const gp_Pnt2d &Center)
     Creates an ellipse from center and two points.
    const gp_Elips2d & Value () const
     Returns the constructed ellipse. Exceptions StdFail_NotDone if no ellipse is constructed.
    gp_Elips2d Operator () const
     Alias for Value() returning a copy.
     operator gp_Elips2d () const
     Conversion operator returning the constructed object.
    Public Member Functions inherited from gce_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 gce_Root
    gce_ErrorType TheError

    Detailed Description

    This class implements construction algorithms for gp_Elips2d. Supported constructions include:

    • ellipse from major axis (or local 2D coordinate system) and radii;
    • ellipse from center and two points.

    Constructor & Destructor Documentation

    ◆ gce_MakeElips2d() [1/3]

    gce_MakeElips2d::gce_MakeElips2d ( const gp_Ax2d & MajorAxis,
    const double MajorRadius,
    const double MinorRadius,
    const bool Sense = true )

    Creates an ellipse with the major axis, the major and the minor radius. The location of the MajorAxis is the center of the ellipse. The sense of parametrization is given by Sense. It is possible to create an ellipse with MajorRadius = MinorRadius.

    Note
    Construction fails with gce_InvertRadius if MajorRadius < MinorRadius.
    Construction fails with gce_NegativeRadius if MajorRadius < 0.0.
    Parameters
    [in]MajorAxismajor axis placement
    [in]MajorRadiusmajor radius value
    [in]MinorRadiusminor radius value
    [in]Senseorientation flag

    ◆ gce_MakeElips2d() [2/3]

    gce_MakeElips2d::gce_MakeElips2d ( const gp_Ax22d & A,
    const double MajorRadius,
    const double MinorRadius )

    Axis defines the Xaxis and Yaxis of the ellipse which defines the origin and the sense of parametrization. Creates an ellipse with the AxisPlacement the major and the minor radius. The location of Axis is the center of the ellipse. It is possible to create an ellipse with MajorRadius = MinorRadius.

    Note
    Construction fails with gce_InvertRadius if MajorRadius < MinorRadius.
    Construction fails with gce_NegativeRadius if MajorRadius < 0.0.
    Parameters
    [in]Alocal coordinate system
    [in]MajorRadiusmajor radius value
    [in]MinorRadiusminor radius value

    ◆ gce_MakeElips2d() [3/3]

    gce_MakeElips2d::gce_MakeElips2d ( const gp_Pnt2d & S1,
    const gp_Pnt2d & S2,
    const gp_Pnt2d & Center )

    Creates an ellipse from center and two points.

    Note
    S1 defines major radius direction and value.
    Minor radius is computed as distance from S2 to major axis.
    Construction fails with gce_NullAxis when computed minor radius is null.
    Construction fails with gce_InvertAxis when computed minor radius exceeds major radius.
    Parameters
    [in]S1first point
    [in]S2second point
    [in]Centercenter point

    Member Function Documentation

    ◆ Operator()

    gp_Elips2d gce_MakeElips2d::Operator ( ) const
    inline

    Alias for Value() returning a copy.

    Returns
    resulting object

    ◆ operator gp_Elips2d()

    gce_MakeElips2d::operator gp_Elips2d ( ) const
    inline

    Conversion operator returning the constructed object.

    Returns
    resulting object

    ◆ Value()

    const gp_Elips2d & gce_MakeElips2d::Value ( ) const

    Returns the constructed ellipse. Exceptions StdFail_NotDone if no ellipse is constructed.

    Returns
    resulting ellipse

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