Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Convert_ParabolaToBSplineCurve Class Reference

This algorithm converts a parabola into a non rational B-spline curve. The parabola is a Parab2d from package gp with the parametrization P (U) = Loc + F * (U*U * Xdir + 2 * U * Ydir) where Loc is the apex of the parabola, Xdir is the normalized direction of the symmetry axis of the parabola, Ydir is the normalized direction of the directrix and F is the focal length. KeyWords : Convert, Parabola, BSplineCurve, 2D . More...

#include <Convert_ParabolaToBSplineCurve.hxx>

Inheritance diagram for Convert_ParabolaToBSplineCurve:
Inheritance graph
[legend]

Public Member Functions

 Convert_ParabolaToBSplineCurve (const gp_Parab2d &Prb, const double U1, const double U2)
 The parabola Prb is limited between the parametric values U1, U2 and the equivalent B-spline curve as the same orientation as the parabola Prb.
 
- Public Member Functions inherited from Convert_ConicToBSplineCurve
int Degree () const
 Returns the degree of the BSpline curve whose data is computed in this framework.
 
int NbPoles () const
 Returns the number of poles of the BSpline curve whose data is computed in this framework.
 
int NbKnots () const
 Returns the number of knots of the BSpline curve whose data is computed in this framework.
 
bool IsPeriodic () const
 Returns true if the BSpline curve whose data is computed in this framework is periodic.
 
gp_Pnt2d Pole (const int theIndex) const
 Returns the pole of index Index to the poles table of the BSpline curve whose data is computed in this framework.
 
double Weight (const int theIndex) const
 Returns the weight of the pole of index Index to the poles table of the BSpline curve whose data is computed in this framework.
 
double Knot (const int theIndex) const
 Returns the knot of index Index to the knots table of the BSpline curve whose data is computed in this framework.
 
int Multiplicity (const int theIndex) const
 Returns the multiplicity of the knot of index Index to the knots table of the BSpline curve whose data is computed in this framework.
 
const NCollection_Array1< gp_Pnt2d > & Poles () const
 Returns the poles of the BSpline curve.
 
const NCollection_Array1< double > & Weights () const
 Returns the weights of the BSpline curve.
 
const NCollection_Array1< double > & Knots () const
 Returns the knots of the BSpline curve.
 
const NCollection_Array1< int > & Multiplicities () const
 Returns the multiplicities of the BSpline curve.
 
void BuildCosAndSin (const Convert_ParameterisationType theParametrisation, occ::handle< NCollection_HArray1< double > > &theCosNumerator, occ::handle< NCollection_HArray1< double > > &theSinNumerator, occ::handle< NCollection_HArray1< double > > &theDenominator, int &theDegree, occ::handle< NCollection_HArray1< double > > &theKnots, occ::handle< NCollection_HArray1< int > > &theMults) const
 Legacy API returning handle arrays for compatibility.
 
void BuildCosAndSin (const Convert_ParameterisationType theParametrisation, const double theUFirst, const double theULast, occ::handle< NCollection_HArray1< double > > &theCosNumerator, occ::handle< NCollection_HArray1< double > > &theSinNumerator, occ::handle< NCollection_HArray1< double > > &theDenominator, int &theDegree, occ::handle< NCollection_HArray1< double > > &theKnots, occ::handle< NCollection_HArray1< int > > &theMults) const
 Legacy API returning handle arrays for compatibility.
 

Additional Inherited Members

- Protected Member Functions inherited from Convert_ConicToBSplineCurve
 Convert_ConicToBSplineCurve (const int theNumberOfPoles, const int theNumberOfKnots, const int theDegree)
 
void BuildCosAndSin (const Convert_ParameterisationType theParametrisation, NCollection_Array1< double > &theCosNumerator, NCollection_Array1< double > &theSinNumerator, NCollection_Array1< double > &theDenominator, int &theDegree, NCollection_Array1< double > &theKnots, NCollection_Array1< int > &theMults) const
 
void BuildCosAndSin (const Convert_ParameterisationType theParametrisation, const double theUFirst, const double theULast, NCollection_Array1< double > &theCosNumerator, NCollection_Array1< double > &theSinNumerator, NCollection_Array1< double > &theDenominator, int &theDegree, NCollection_Array1< double > &theKnots, NCollection_Array1< int > &theMults) const
 
- Protected Attributes inherited from Convert_ConicToBSplineCurve
NCollection_Array1< gp_Pnt2dmyPoles
 
NCollection_Array1< doublemyWeights
 
NCollection_Array1< doublemyKnots
 
NCollection_Array1< intmyMults
 
int myDegree = 0
 
bool myIsPeriodic = false
 

Detailed Description

This algorithm converts a parabola into a non rational B-spline curve. The parabola is a Parab2d from package gp with the parametrization P (U) = Loc + F * (U*U * Xdir + 2 * U * Ydir) where Loc is the apex of the parabola, Xdir is the normalized direction of the symmetry axis of the parabola, Ydir is the normalized direction of the directrix and F is the focal length. KeyWords : Convert, Parabola, BSplineCurve, 2D .

Constructor & Destructor Documentation

◆ Convert_ParabolaToBSplineCurve()

Convert_ParabolaToBSplineCurve::Convert_ParabolaToBSplineCurve ( const gp_Parab2d & Prb,
const double U1,
const double U2 )

The parabola Prb is limited between the parametric values U1, U2 and the equivalent B-spline curve as the same orientation as the parabola Prb.


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