Defines a 2d curve by projection of a 3D curve on a plane with an optional perspective transformation. More...
#include <HLRBRep_Curve.hxx>
Public Member Functions | |
| HLRBRep_Curve () | |
| Creates an undefined Curve. | |
| void | Projector (const HLRAlgo_Projector *Proj) |
| BRepAdaptor_Curve & | Curve () |
| Returns the 3D curve. | |
| void | Curve (const TopoDS_Edge &E) |
| Sets the 3D curve to be projected. | |
| const BRepAdaptor_Curve & | GetCurve () const |
| Returns the 3D curve. | |
| double | Parameter2d (const double P3d) const |
| Returns the parameter on the 2d curve from the parameter on the 3d curve. | |
| double | Parameter3d (const double P2d) const |
| Returns the parameter on the 3d curve from the parameter on the 2d curve. | |
| double | Update (double TotMin[16], double TotMax[16]) |
| Update the minmax and the internal data. | |
| double | UpdateMinMax (double TotMin[16], double TotMax[16]) |
| Update the minmax returns tol for enlarge;. | |
| double | Z (const double U) const |
| Computes the Z coordinate of the point of parameter U on the curve in the viewing coordinate system. | |
| gp_Pnt | Value3D (const double U) const |
| Computes the 3D point of parameter U on the curve. | |
| void | D0 (const double U, gp_Pnt &P) const |
| Computes the 3D point of parameter U on the curve. | |
| void | D1 (const double U, gp_Pnt &P, gp_Vec &V) const |
| Computes the point of parameter U on the curve with its first derivative. | |
| void | Tangent (const bool AtStart, gp_Pnt2d &P, gp_Dir2d &D) const |
| Depending on <AtStart> computes the 2D point and tangent on the curve at sart (or at end). If the first derivative is null look after at start (or before at end) with the second derivative. | |
| double | FirstParameter () const |
| double | LastParameter () const |
| GeomAbs_Shape | Continuity () const |
| int | NbIntervals (const GeomAbs_Shape S) const |
| If necessary, breaks the curve in intervals of continuity | |
| void | Intervals (NCollection_Array1< double > &T, const GeomAbs_Shape S) const |
| Stores in <T> the parameters bounding the intervals of continuity | |
| bool | IsClosed () const |
| bool | IsPeriodic () const |
| double | Period () const |
| gp_Pnt2d | Value (const double U) const |
| Computes the point of parameter U on the curve. | |
| void | D0 (const double U, gp_Pnt2d &P) const |
| Computes the point of parameter U on the curve. | |
| void | D1 (const double U, gp_Pnt2d &P, gp_Vec2d &V) const |
| Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1. | |
| void | D2 (const double U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2) const |
| Raised if the continuity of the current interval is not C2. | |
| void | D3 (const double U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const |
| Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3. | |
| gp_Vec2d | DN (const double U, const int N) const |
| The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1. | |
| double | Resolution (const double R3d) const |
| Returns the parametric resolution corresponding to the real space resolution <R3d>. | |
| GeomAbs_CurveType | GetType () const |
| Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. | |
| gp_Lin2d | Line () const |
| gp_Circ2d | Circle () const |
| gp_Elips2d | Ellipse () const |
| gp_Hypr2d | Hyperbola () const |
| gp_Parab2d | Parabola () const |
| bool | IsRational () const |
| int | Degree () const |
| int | NbPoles () const |
| void | Poles (NCollection_Array1< gp_Pnt2d > &TP) const |
| void | Poles (const occ::handle< Geom_BSplineCurve > &aCurve, NCollection_Array1< gp_Pnt2d > &TP) const |
| void | PolesAndWeights (NCollection_Array1< gp_Pnt2d > &TP, NCollection_Array1< double > &TW) const |
| void | PolesAndWeights (const occ::handle< Geom_BSplineCurve > &aCurve, NCollection_Array1< gp_Pnt2d > &TP, NCollection_Array1< double > &TW) const |
| int | NbKnots () const |
| void | Knots (NCollection_Array1< double > &kn) const |
| void | Multiplicities (NCollection_Array1< int > &mu) const |
Defines a 2d curve by projection of a 3D curve on a plane with an optional perspective transformation.
| HLRBRep_Curve::HLRBRep_Curve | ( | ) |
Creates an undefined Curve.
| gp_Circ2d HLRBRep_Curve::Circle | ( | ) | const |
| GeomAbs_Shape HLRBRep_Curve::Continuity | ( | ) | const |
| BRepAdaptor_Curve & HLRBRep_Curve::Curve | ( | ) |
Returns the 3D curve.
| void HLRBRep_Curve::Curve | ( | const TopoDS_Edge & | E | ) |
Sets the 3D curve to be projected.
Computes the 3D point of parameter U on the curve.
Computes the point of parameter U on the curve.
Computes the point of parameter U on the curve with its first derivative.
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Raised if the continuity of the current interval is not C2.
| void HLRBRep_Curve::D3 | ( | const double | U, |
| gp_Pnt2d & | P, | ||
| gp_Vec2d & | V1, | ||
| gp_Vec2d & | V2, | ||
| gp_Vec2d & | V3 ) const |
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
| int HLRBRep_Curve::Degree | ( | ) | const |
| gp_Vec2d HLRBRep_Curve::DN | ( | const double | U, |
| const int | N ) const |
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
| gp_Elips2d HLRBRep_Curve::Ellipse | ( | ) | const |
| double HLRBRep_Curve::FirstParameter | ( | ) | const |
| const BRepAdaptor_Curve & HLRBRep_Curve::GetCurve | ( | ) | const |
Returns the 3D curve.
| GeomAbs_CurveType HLRBRep_Curve::GetType | ( | ) | const |
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
| gp_Hypr2d HLRBRep_Curve::Hyperbola | ( | ) | const |
| void HLRBRep_Curve::Intervals | ( | NCollection_Array1< double > & | T, |
| const GeomAbs_Shape | S ) const |
Stores in <T> the parameters bounding the intervals of continuity .
The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()
| bool HLRBRep_Curve::IsClosed | ( | ) | const |
| bool HLRBRep_Curve::IsPeriodic | ( | ) | const |
| bool HLRBRep_Curve::IsRational | ( | ) | const |
| void HLRBRep_Curve::Knots | ( | NCollection_Array1< double > & | kn | ) | const |
| double HLRBRep_Curve::LastParameter | ( | ) | const |
| gp_Lin2d HLRBRep_Curve::Line | ( | ) | const |
| void HLRBRep_Curve::Multiplicities | ( | NCollection_Array1< int > & | mu | ) | const |
| int HLRBRep_Curve::NbIntervals | ( | const GeomAbs_Shape | S | ) | const |
If necessary, breaks the curve in intervals of continuity . And returns the number of intervals.
| int HLRBRep_Curve::NbKnots | ( | ) | const |
| int HLRBRep_Curve::NbPoles | ( | ) | const |
| gp_Parab2d HLRBRep_Curve::Parabola | ( | ) | const |
| double HLRBRep_Curve::Parameter2d | ( | const double | P3d | ) | const |
Returns the parameter on the 2d curve from the parameter on the 3d curve.
| double HLRBRep_Curve::Parameter3d | ( | const double | P2d | ) | const |
Returns the parameter on the 3d curve from the parameter on the 2d curve.
| double HLRBRep_Curve::Period | ( | ) | const |
| void HLRBRep_Curve::Poles | ( | const occ::handle< Geom_BSplineCurve > & | aCurve, |
| NCollection_Array1< gp_Pnt2d > & | TP ) const |
| void HLRBRep_Curve::Poles | ( | NCollection_Array1< gp_Pnt2d > & | TP | ) | const |
| void HLRBRep_Curve::PolesAndWeights | ( | const occ::handle< Geom_BSplineCurve > & | aCurve, |
| NCollection_Array1< gp_Pnt2d > & | TP, | ||
| NCollection_Array1< double > & | TW ) const |
| void HLRBRep_Curve::PolesAndWeights | ( | NCollection_Array1< gp_Pnt2d > & | TP, |
| NCollection_Array1< double > & | TW ) const |
|
inline |
| double HLRBRep_Curve::Resolution | ( | const double | R3d | ) | const |
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Depending on <AtStart> computes the 2D point and tangent on the curve at sart (or at end). If the first derivative is null look after at start (or before at end) with the second derivative.
| double HLRBRep_Curve::Update | ( | double | TotMin[16], |
| double | TotMax[16] ) |
Update the minmax and the internal data.
| double HLRBRep_Curve::UpdateMinMax | ( | double | TotMin[16], |
| double | TotMax[16] ) |
Update the minmax returns tol for enlarge;.
| gp_Pnt2d HLRBRep_Curve::Value | ( | const double | U | ) | const |
Computes the point of parameter U on the curve.
| gp_Pnt HLRBRep_Curve::Value3D | ( | const double | U | ) | const |
Computes the 3D point of parameter U on the curve.
| double HLRBRep_Curve::Z | ( | const double | U | ) | const |
Computes the Z coordinate of the point of parameter U on the curve in the viewing coordinate system.