This class implements construction algorithms for gp_Elips2d. Supported constructions include:
More...
#include <gce_MakeElips2d.hxx>
|
| | 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.
|
| |
| 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:
|
| |
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.
◆ 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] | MajorAxis | major axis placement |
| [in] | MajorRadius | major radius value |
| [in] | MinorRadius | minor radius value |
| [in] | Sense | orientation 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] | A | local coordinate system |
| [in] | MajorRadius | major radius value |
| [in] | MinorRadius | minor radius value |
◆ gce_MakeElips2d() [3/3]
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] | S1 | first point |
| [in] | S2 | second point |
| [in] | Center | center point |
◆ Operator()
Alias for Value() returning a copy.
- Returns
- resulting object
◆ operator gp_Elips2d()
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: