Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
Convert_GridPolynomialToPoles Class Reference

Convert a grid of Polynomial Surfaces that are have continuity CM to an Bspline Surface that has continuity CM. More...

#include <Convert_GridPolynomialToPoles.hxx>

Public Member Functions

 Convert_GridPolynomialToPoles (const int theMaxUDegree, const int theMaxVDegree, const NCollection_Array1< int > &theNumCoeff, const NCollection_Array1< double > &theCoefficients, const NCollection_Array1< double > &thePolynomialUIntervals, const NCollection_Array1< double > &thePolynomialVIntervals)
 To only one polynomial Surface. The Length of <PolynomialUIntervals> and <PolynomialVIntervals> have to be 2. This values defined the parametric domain of the Polynomial Equation.
 Convert_GridPolynomialToPoles (const int theMaxUDegree, const int theMaxVDegree, const occ::handle< NCollection_HArray1< int > > &theNumCoeff, const occ::handle< NCollection_HArray1< double > > &theCoefficients, const occ::handle< NCollection_HArray1< double > > &thePolynomialUIntervals, const occ::handle< NCollection_HArray1< double > > &thePolynomialVIntervals)
 Handle-based overload (delegates to the array-based constructor). Provided for backward compatibility; new code should prefer the NCollection_Array1 form which avoids unnecessary heap allocation.
 Convert_GridPolynomialToPoles (const int theNbUSurfaces, const int theNbVSurfaces, const int theUContinuity, const int theVContinuity, const int theMaxUDegree, const int theMaxVDegree, const NCollection_Array2< int > &theNumCoeffPerSurface, const NCollection_Array1< double > &theCoefficients, const NCollection_Array1< double > &thePolynomialUIntervals, const NCollection_Array1< double > &thePolynomialVIntervals, const NCollection_Array1< double > &theTrueUIntervals, const NCollection_Array1< double > &theTrueVIntervals)
 To one grid of polynomial Surface. Warning! Continuity in each parametric direction can be at MOST the maximum degree of the polynomial functions.
 Convert_GridPolynomialToPoles (const int theNbUSurfaces, const int theNbVSurfaces, const int theUContinuity, const int theVContinuity, const int theMaxUDegree, const int theMaxVDegree, const occ::handle< NCollection_HArray2< int > > &theNumCoeffPerSurface, const occ::handle< NCollection_HArray1< double > > &theCoefficients, const occ::handle< NCollection_HArray1< double > > &thePolynomialUIntervals, const occ::handle< NCollection_HArray1< double > > &thePolynomialVIntervals, const occ::handle< NCollection_HArray1< double > > &theTrueUIntervals, const occ::handle< NCollection_HArray1< double > > &theTrueVIntervals)
 Handle-based overload (delegates to the array-based constructor).
int NbUPoles () const
 Returns the number of poles in the U parametric direction.
int NbVPoles () const
 Returns the number of poles in the V parametric direction.
const NCollection_Array2< gp_Pnt > & Poles () const
 Returns the poles of the BSpline Surface.
int UDegree () const
 Returns the degree in the U parametric direction.
int VDegree () const
 Returns the degree in the V parametric direction.
int NbUKnots () const
 Returns the number of knots in the U parametric direction.
int NbVKnots () const
 Returns the number of knots in the V parametric direction.
const NCollection_Array1< double > & UKnots () const
 Returns the knots in the U direction.
const NCollection_Array1< double > & VKnots () const
 Returns the knots in the V direction.
const NCollection_Array1< int > & UMultiplicities () const
 Returns the multiplicities of the knots in the U direction.
const NCollection_Array1< int > & VMultiplicities () const
 Returns the multiplicities of the knots in the V direction.
bool IsDone () const
 Returns true if the conversion was successful.

Detailed Description

Convert a grid of Polynomial Surfaces that are have continuity CM to an Bspline Surface that has continuity CM.

Constructor & Destructor Documentation

◆ Convert_GridPolynomialToPoles() [1/4]

Convert_GridPolynomialToPoles::Convert_GridPolynomialToPoles ( const int theMaxUDegree,
const int theMaxVDegree,
const NCollection_Array1< int > & theNumCoeff,
const NCollection_Array1< double > & theCoefficients,
const NCollection_Array1< double > & thePolynomialUIntervals,
const NCollection_Array1< double > & thePolynomialVIntervals )

To only one polynomial Surface. The Length of <PolynomialUIntervals> and <PolynomialVIntervals> have to be 2. This values defined the parametric domain of the Polynomial Equation.

Coefficients: The <Coefficients> have to be formatted than an "C array" [MaxUDegree+1] [MaxVDegree+1] [3]

◆ Convert_GridPolynomialToPoles() [2/4]

Convert_GridPolynomialToPoles::Convert_GridPolynomialToPoles ( const int theMaxUDegree,
const int theMaxVDegree,
const occ::handle< NCollection_HArray1< int > > & theNumCoeff,
const occ::handle< NCollection_HArray1< double > > & theCoefficients,
const occ::handle< NCollection_HArray1< double > > & thePolynomialUIntervals,
const occ::handle< NCollection_HArray1< double > > & thePolynomialVIntervals )

Handle-based overload (delegates to the array-based constructor). Provided for backward compatibility; new code should prefer the NCollection_Array1 form which avoids unnecessary heap allocation.

◆ Convert_GridPolynomialToPoles() [3/4]

Convert_GridPolynomialToPoles::Convert_GridPolynomialToPoles ( const int theNbUSurfaces,
const int theNbVSurfaces,
const int theUContinuity,
const int theVContinuity,
const int theMaxUDegree,
const int theMaxVDegree,
const NCollection_Array2< int > & theNumCoeffPerSurface,
const NCollection_Array1< double > & theCoefficients,
const NCollection_Array1< double > & thePolynomialUIntervals,
const NCollection_Array1< double > & thePolynomialVIntervals,
const NCollection_Array1< double > & theTrueUIntervals,
const NCollection_Array1< double > & theTrueVIntervals )

To one grid of polynomial Surface. Warning! Continuity in each parametric direction can be at MOST the maximum degree of the polynomial functions.

<TrueUIntervals>, <TrueVIntervals> : this is the true parameterisation for the composite surface

Coefficients: The Coefficients have to be formatted than an "C array" [NbVSurfaces] [NBUSurfaces] [MaxUDegree+1] [MaxVDegree+1] [3] raises DomainError if <NumCoeffPerSurface> is not a [1, NbVSurfaces*NbUSurfaces, 1,2] array. if <Coefficients> is not a

◆ Convert_GridPolynomialToPoles() [4/4]

Convert_GridPolynomialToPoles::Convert_GridPolynomialToPoles ( const int theNbUSurfaces,
const int theNbVSurfaces,
const int theUContinuity,
const int theVContinuity,
const int theMaxUDegree,
const int theMaxVDegree,
const occ::handle< NCollection_HArray2< int > > & theNumCoeffPerSurface,
const occ::handle< NCollection_HArray1< double > > & theCoefficients,
const occ::handle< NCollection_HArray1< double > > & thePolynomialUIntervals,
const occ::handle< NCollection_HArray1< double > > & thePolynomialVIntervals,
const occ::handle< NCollection_HArray1< double > > & theTrueUIntervals,
const occ::handle< NCollection_HArray1< double > > & theTrueVIntervals )

Handle-based overload (delegates to the array-based constructor).

Member Function Documentation

◆ IsDone()

bool Convert_GridPolynomialToPoles::IsDone ( ) const
nodiscard

Returns true if the conversion was successful.

◆ NbUKnots()

int Convert_GridPolynomialToPoles::NbUKnots ( ) const
nodiscard

Returns the number of knots in the U parametric direction.

◆ NbUPoles()

int Convert_GridPolynomialToPoles::NbUPoles ( ) const
nodiscard

Returns the number of poles in the U parametric direction.

◆ NbVKnots()

int Convert_GridPolynomialToPoles::NbVKnots ( ) const
nodiscard

Returns the number of knots in the V parametric direction.

◆ NbVPoles()

int Convert_GridPolynomialToPoles::NbVPoles ( ) const
nodiscard

Returns the number of poles in the V parametric direction.

◆ Poles()

const NCollection_Array2< gp_Pnt > & Convert_GridPolynomialToPoles::Poles ( ) const
nodiscard

Returns the poles of the BSpline Surface.

◆ UDegree()

int Convert_GridPolynomialToPoles::UDegree ( ) const
nodiscard

Returns the degree in the U parametric direction.

◆ UKnots()

const NCollection_Array1< double > & Convert_GridPolynomialToPoles::UKnots ( ) const
nodiscard

Returns the knots in the U direction.

◆ UMultiplicities()

const NCollection_Array1< int > & Convert_GridPolynomialToPoles::UMultiplicities ( ) const
nodiscard

Returns the multiplicities of the knots in the U direction.

◆ VDegree()

int Convert_GridPolynomialToPoles::VDegree ( ) const
nodiscard

Returns the degree in the V parametric direction.

◆ VKnots()

const NCollection_Array1< double > & Convert_GridPolynomialToPoles::VKnots ( ) const
nodiscard

Returns the knots in the V direction.

◆ VMultiplicities()

const NCollection_Array1< int > & Convert_GridPolynomialToPoles::VMultiplicities ( ) const
nodiscard

Returns the multiplicities of the knots in the V direction.


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