![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Convert a serie of Polynomial N-Dimensional Curves that are have continuity CM to an N-Dimensional Bspline Curve that has continuity CM. (to convert an function (curve) polynomial by span in a BSpline) This class uses the following arguments : NumCurves : the number of Polynomial Curves Continuity: the requested continuity for the n-dimensional Spline Dimension : the dimension of the Spline MaxDegree : maximum allowed degree for each composite polynomial segment. NumCoeffPerCurve : the number of coefficient per segments = degree - 1 Coefficients : the coefficients organized in the following way [1..<myNumPolynomials>][1..myMaxDegree +1][1..myDimension] that is : index [n,d,i] is at slot (n-1) * (myMaxDegree + 1) * myDimension + (d-1) * myDimension + i PolynomialIntervals : nth polynomial represents a polynomial between myPolynomialIntervals->Value(n,0) and myPolynomialIntervals->Value(n,1) TrueIntervals : the nth polynomial has to be mapped linearly to be defined on the following interval : myTrueIntervals->Value(n) and myTrueIntervals->Value(n+1) so that it adequately represents the function with the required continuity. More...
#include <Convert_CompPolynomialToPoles.hxx>
Public Member Functions | |
| Convert_CompPolynomialToPoles (const int NumCurves, const int Continuity, const int Dimension, const int MaxDegree, const occ::handle< NCollection_HArray1< int > > &NumCoeffPerCurve, const occ::handle< NCollection_HArray1< double > > &Coefficients, const occ::handle< NCollection_HArray2< double > > &PolynomialIntervals, const occ::handle< NCollection_HArray1< double > > &TrueIntervals) | |
| Warning! Continuity can be at MOST the maximum degree of the polynomial functions TrueIntervals : this is the true parameterisation for the composite curve that is : the curve has myContinuity if the nth curve is parameterized between myTrueIntervals(n) and myTrueIntervals(n+1) | |
| Convert_CompPolynomialToPoles (const int NumCurves, const int Dimension, const int MaxDegree, const NCollection_Array1< int > &Continuity, const NCollection_Array1< int > &NumCoeffPerCurve, const NCollection_Array1< double > &Coefficients, const NCollection_Array2< double > &PolynomialIntervals, const NCollection_Array1< double > &TrueIntervals) | |
| To Convert several span with different order of Continuity. Warning: The Length of Continuity have to be NumCurves-1. | |
| Convert_CompPolynomialToPoles (const int Dimension, const int MaxDegree, const int Degree, const NCollection_Array1< double > &Coefficients, const NCollection_Array1< double > &PolynomialIntervals, const NCollection_Array1< double > &TrueIntervals) | |
| To Convert only one span. | |
| int | NbPoles () const |
| Returns the number of poles of the n-dimensional BSpline. | |
| const NCollection_Array2< double > & | Poles () const |
| Returns the poles of the n-dimensional BSpline in the following format: [1..NumPoles][1..Dimension]. | |
| void | Poles (occ::handle< NCollection_HArray2< double > > &thePoles) const |
| Returns the poles of the n-dimensional BSpline via output parameter. | |
| int | Degree () const |
| Returns the degree of the n-dimensional BSpline. | |
| int | NbKnots () const |
| Returns the number of knots of the n-dimensional BSpline. | |
| const NCollection_Array1< double > & | Knots () const |
| Returns the knots of the n-dimensional BSpline. | |
| void | Knots (occ::handle< NCollection_HArray1< double > > &theKnots) const |
| Returns the knots of the n-dimensional BSpline via output parameter. | |
| const NCollection_Array1< int > & | Multiplicities () const |
| Returns the multiplicities of the knots in the BSpline. | |
| void | Multiplicities (occ::handle< NCollection_HArray1< int > > &theMults) const |
| Returns the multiplicities of the knots via output parameter. | |
| bool | IsDone () const |
| Returns true if the conversion was successful. | |
Convert a serie of Polynomial N-Dimensional Curves that are have continuity CM to an N-Dimensional Bspline Curve that has continuity CM. (to convert an function (curve) polynomial by span in a BSpline) This class uses the following arguments : NumCurves : the number of Polynomial Curves Continuity: the requested continuity for the n-dimensional Spline Dimension : the dimension of the Spline MaxDegree : maximum allowed degree for each composite polynomial segment. NumCoeffPerCurve : the number of coefficient per segments = degree - 1 Coefficients : the coefficients organized in the following way [1..<myNumPolynomials>][1..myMaxDegree +1][1..myDimension] that is : index [n,d,i] is at slot (n-1) * (myMaxDegree + 1) * myDimension + (d-1) * myDimension + i PolynomialIntervals : nth polynomial represents a polynomial between myPolynomialIntervals->Value(n,0) and myPolynomialIntervals->Value(n,1) TrueIntervals : the nth polynomial has to be mapped linearly to be defined on the following interval : myTrueIntervals->Value(n) and myTrueIntervals->Value(n+1) so that it adequately represents the function with the required continuity.
| Convert_CompPolynomialToPoles::Convert_CompPolynomialToPoles | ( | const int | NumCurves, |
| const int | Continuity, | ||
| const int | Dimension, | ||
| const int | MaxDegree, | ||
| const occ::handle< NCollection_HArray1< int > > & | NumCoeffPerCurve, | ||
| const occ::handle< NCollection_HArray1< double > > & | Coefficients, | ||
| const occ::handle< NCollection_HArray2< double > > & | PolynomialIntervals, | ||
| const occ::handle< NCollection_HArray1< double > > & | TrueIntervals ) |
Warning! Continuity can be at MOST the maximum degree of the polynomial functions TrueIntervals : this is the true parameterisation for the composite curve that is : the curve has myContinuity if the nth curve is parameterized between myTrueIntervals(n) and myTrueIntervals(n+1)
Coefficients have to be the implicit "c form": Coefficients[Numcurves][MaxDegree+1][Dimension]
Warning! The NumberOfCoefficient of an polynome is his degree + 1 Example: To convert the linear function f(x) = 2*x + 1 on the domaine [2,5] to BSpline with the bound [-1,1]. Arguments are : NumCurves = 1; Continuity = 1; Dimension = 1; MaxDegree = 1; NumCoeffPerCurve [1] = {2}; Coefficients[2] = {1, 2}; PolynomialIntervals[1,2] = {{2,5}} TrueIntervals[2] = {-1, 1}
| Convert_CompPolynomialToPoles::Convert_CompPolynomialToPoles | ( | const int | NumCurves, |
| const int | Dimension, | ||
| const int | MaxDegree, | ||
| const NCollection_Array1< int > & | Continuity, | ||
| const NCollection_Array1< int > & | NumCoeffPerCurve, | ||
| const NCollection_Array1< double > & | Coefficients, | ||
| const NCollection_Array2< double > & | PolynomialIntervals, | ||
| const NCollection_Array1< double > & | TrueIntervals ) |
To Convert several span with different order of Continuity. Warning: The Length of Continuity have to be NumCurves-1.
| Convert_CompPolynomialToPoles::Convert_CompPolynomialToPoles | ( | const int | Dimension, |
| const int | MaxDegree, | ||
| const int | Degree, | ||
| const NCollection_Array1< double > & | Coefficients, | ||
| const NCollection_Array1< double > & | PolynomialIntervals, | ||
| const NCollection_Array1< double > & | TrueIntervals ) |
To Convert only one span.
| int Convert_CompPolynomialToPoles::Degree | ( | ) | const |
Returns the degree of the n-dimensional BSpline.
| bool Convert_CompPolynomialToPoles::IsDone | ( | ) | const |
Returns true if the conversion was successful.
| const NCollection_Array1< double > & Convert_CompPolynomialToPoles::Knots | ( | ) | const |
Returns the knots of the n-dimensional BSpline.
| void Convert_CompPolynomialToPoles::Knots | ( | occ::handle< NCollection_HArray1< double > > & | theKnots | ) | const |
Returns the knots of the n-dimensional BSpline via output parameter.
| const NCollection_Array1< int > & Convert_CompPolynomialToPoles::Multiplicities | ( | ) | const |
Returns the multiplicities of the knots in the BSpline.
| void Convert_CompPolynomialToPoles::Multiplicities | ( | occ::handle< NCollection_HArray1< int > > & | theMults | ) | const |
Returns the multiplicities of the knots via output parameter.
| int Convert_CompPolynomialToPoles::NbKnots | ( | ) | const |
Returns the number of knots of the n-dimensional BSpline.
| int Convert_CompPolynomialToPoles::NbPoles | ( | ) | const |
Returns the number of poles of the n-dimensional BSpline.
| const NCollection_Array2< double > & Convert_CompPolynomialToPoles::Poles | ( | ) | const |
Returns the poles of the n-dimensional BSpline in the following format: [1..NumPoles][1..Dimension].
| void Convert_CompPolynomialToPoles::Poles | ( | occ::handle< NCollection_HArray2< double > > & | thePoles | ) | const |
Returns the poles of the n-dimensional BSpline via output parameter.