Implements construction algorithms for gp_Parab2d. The parabola is infinite and represented in a local 2D coordinate system. The XAxis is the symmetry axis directed from vertex to focus, and the YAxis is parallel to the directrix. The equation in local coordinates is: Y**2 = (2*P) * X, where P is the distance between focus and directrix. The focal length F = P / 2 is the distance from vertex to focus.
More...
#include <gce_MakeParab2d.hxx>
Implements construction algorithms for gp_Parab2d. The parabola is infinite and represented in a local 2D coordinate system. The XAxis is the symmetry axis directed from vertex to focus, and the YAxis is parallel to the directrix. The equation in local coordinates is: Y**2 = (2*P) * X, where P is the distance between focus and directrix. The focal length F = P / 2 is the distance from vertex to focus.
Supported constructions:
- from symmetry axis and focal length;
- from full axis system and focal length;
- from directrix and focus;
- from focus and vertex.
◆ gce_MakeParab2d() [1/4]
| gce_MakeParab2d::gce_MakeParab2d |
( |
const gp_Ax2d & | MirrorAxis, |
|
|
const double | Focal, |
|
|
const bool | Sense = true ) |
Creates a parabola from symmetry axis and focal length.
- Parameters
-
| [in] | MirrorAxis | symmetry axis of the parabola |
| [in] | Focal | focal length |
| [in] | Sense | orientation of parametrization |
- Note
Focal = 0 is accepted.
-
TheError is set to gce_NullFocusLength if Focal < 0.0.
◆ gce_MakeParab2d() [2/4]
| gce_MakeParab2d::gce_MakeParab2d |
( |
const gp_Ax22d & | A, |
|
|
const double | Focal ) |
Creates a parabola from full local coordinate system and focal length.
- Parameters
-
| [in] | A | local coordinate system of the parabola |
| [in] | Focal | focal length |
- Note
Focal = 0 is accepted.
-
TheError is set to gce_NullFocusLength if Focal < 0.0.
◆ gce_MakeParab2d() [3/4]
Creates a parabola from directrix and focus.
- Parameters
-
| [in] | D | directrix of the parabola |
| [in] | F | focus point of the parabola |
| [in] | Sense | orientation of parametrization |
◆ gce_MakeParab2d() [4/4]
Creates a parabola from focus and vertex.
- Parameters
-
| [in] | S1 | focus point |
| [in] | Center | vertex point |
| [in] | Sense | orientation of parametrization |
- Note
- The class does not prevent zero focal distance.
-
TheError is set to gce_NullAxis if S1 and Center are coincident.
◆ Operator()
Alias for Value() returning a copy.
- Returns
- resulting parabola
◆ operator gp_Parab2d()
Conversion operator returning the constructed parabola.
- Returns
- resulting parabola
◆ Value()
| const gp_Parab2d & gce_MakeParab2d::Value |
( |
| ) |
const |
Returns the constructed parabola.
- Returns
- resulting parabola
- Exceptions
-
| StdFail_NotDone | if construction has failed |
The documentation for this class was generated from the following file: