Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
Convert_ElementarySurfaceToBSplineSurface Class Reference

Root class for algorithms which convert an elementary surface (cylinder, cone, sphere or torus) into a BSpline surface. These algorithms all work on elementary surfaces from the gp package and compute all the data needed to construct a BSpline surface equivalent to the cylinder, cone, sphere or torus. More...

#include <Convert_ElementarySurfaceToBSplineSurface.hxx>

Inheritance diagram for Convert_ElementarySurfaceToBSplineSurface:
Inheritance graph
[legend]

Public Member Functions

int UDegree () const
 Returns the degree in the U parametric direction.
 
int VDegree () const
 Returns the degree in the V parametric direction.
 
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.
 
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.
 
bool IsUPeriodic () const
 Returns true if the surface is periodic in the U parametric direction.
 
bool IsVPeriodic () const
 Returns true if the surface is periodic in the V parametric direction.
 
gp_Pnt Pole (const int UIndex, const int VIndex) const
 Returns the pole of index (UIndex, VIndex).
 
double Weight (const int UIndex, const int VIndex) const
 Returns the weight of the pole of index (UIndex, VIndex).
 
double UKnot (const int UIndex) const
 Returns the U-knot of range UIndex.
 
double VKnot (const int VIndex) const
 Returns the V-knot of range VIndex.
 
int UMultiplicity (const int UIndex) const
 Returns the multiplicity of the U-knot of range UIndex.
 
int VMultiplicity (const int VIndex) const
 Returns the multiplicity of the V-knot of range VIndex.
 
const NCollection_Array2< gp_Pnt > & Poles () const
 Returns the poles of the BSpline surface.
 
const NCollection_Array2< double > & Weights () const
 Returns the weights of the BSpline surface.
 
const NCollection_Array1< double > & UKnots () const
 Returns the U-knots of the BSpline surface.
 
const NCollection_Array1< double > & VKnots () const
 Returns the V-knots of the BSpline surface.
 
const NCollection_Array1< int > & UMultiplicities () const
 Returns the U-multiplicities of the BSpline surface.
 
const NCollection_Array1< int > & VMultiplicities () const
 Returns the V-multiplicities of the BSpline surface.
 

Protected Member Functions

 Convert_ElementarySurfaceToBSplineSurface (const int theNbUPoles, const int theNbVPoles, const int theNbUKnots, const int theNbVKnots, const int theUDegree, const int theVDegree)
 
void Finalize ()
 Resizes internal arrays (poles, weights, knots, multiplicities) to match the actual sizes stored in myNbUPoles, myNbVPoles, myNbUKnots, and myNbVKnots. This is intended to be called at the end of derived class constructors when the base class constructor allocates arrays with maximum possible sizes but the derived constructor uses fewer elements.
 

Protected Attributes

NCollection_Array2< gp_PntmyPoles
 
NCollection_Array2< doublemyWeights
 
NCollection_Array1< doublemyUKnots
 
NCollection_Array1< doublemyVKnots
 
NCollection_Array1< intmyUMults
 
NCollection_Array1< intmyVMults
 
int myUDegree = 0
 
int myVDegree = 0
 
bool myIsUPeriodic = false
 
bool myIsVPeriodic = false
 
int myNbUPoles
 
int myNbVPoles
 
int myNbUKnots
 
int myNbVKnots
 

Detailed Description

Root class for algorithms which convert an elementary surface (cylinder, cone, sphere or torus) into a BSpline surface. These algorithms all work on elementary surfaces from the gp package and compute all the data needed to construct a BSpline surface equivalent to the cylinder, cone, sphere or torus.

Constructor & Destructor Documentation

◆ Convert_ElementarySurfaceToBSplineSurface()

Convert_ElementarySurfaceToBSplineSurface::Convert_ElementarySurfaceToBSplineSurface ( const int theNbUPoles,
const int theNbVPoles,
const int theNbUKnots,
const int theNbVKnots,
const int theUDegree,
const int theVDegree )
protected

Member Function Documentation

◆ Finalize()

void Convert_ElementarySurfaceToBSplineSurface::Finalize ( )
protected

Resizes internal arrays (poles, weights, knots, multiplicities) to match the actual sizes stored in myNbUPoles, myNbVPoles, myNbUKnots, and myNbVKnots. This is intended to be called at the end of derived class constructors when the base class constructor allocates arrays with maximum possible sizes but the derived constructor uses fewer elements.

◆ IsUPeriodic()

bool Convert_ElementarySurfaceToBSplineSurface::IsUPeriodic ( ) const

Returns true if the surface is periodic in the U parametric direction.

◆ IsVPeriodic()

bool Convert_ElementarySurfaceToBSplineSurface::IsVPeriodic ( ) const

Returns true if the surface is periodic in the V parametric direction.

◆ NbUKnots()

int Convert_ElementarySurfaceToBSplineSurface::NbUKnots ( ) const

Returns the number of knots in the U parametric direction.

◆ NbUPoles()

int Convert_ElementarySurfaceToBSplineSurface::NbUPoles ( ) const

Returns the number of poles in the U parametric direction.

◆ NbVKnots()

int Convert_ElementarySurfaceToBSplineSurface::NbVKnots ( ) const

Returns the number of knots in the V parametric direction.

◆ NbVPoles()

int Convert_ElementarySurfaceToBSplineSurface::NbVPoles ( ) const

Returns the number of poles in the V parametric direction.

◆ Pole()

gp_Pnt Convert_ElementarySurfaceToBSplineSurface::Pole ( const int UIndex,
const int VIndex ) const

Returns the pole of index (UIndex, VIndex).

Exceptions
Standard_OutOfRangeif indices are out of bounds
Deprecated
("Use Poles() batch accessor instead")

◆ Poles()

const NCollection_Array2< gp_Pnt > & Convert_ElementarySurfaceToBSplineSurface::Poles ( ) const

Returns the poles of the BSpline surface.

◆ UDegree()

int Convert_ElementarySurfaceToBSplineSurface::UDegree ( ) const

Returns the degree in the U parametric direction.

◆ UKnot()

double Convert_ElementarySurfaceToBSplineSurface::UKnot ( const int UIndex) const

Returns the U-knot of range UIndex.

Exceptions
Standard_OutOfRangeif UIndex is out of bounds
Deprecated
("Use UKnots() batch accessor instead")

◆ UKnots()

const NCollection_Array1< double > & Convert_ElementarySurfaceToBSplineSurface::UKnots ( ) const

Returns the U-knots of the BSpline surface.

◆ UMultiplicities()

const NCollection_Array1< int > & Convert_ElementarySurfaceToBSplineSurface::UMultiplicities ( ) const

Returns the U-multiplicities of the BSpline surface.

◆ UMultiplicity()

int Convert_ElementarySurfaceToBSplineSurface::UMultiplicity ( const int UIndex) const

Returns the multiplicity of the U-knot of range UIndex.

Exceptions
Standard_OutOfRangeif UIndex is out of bounds
Deprecated
("Use UMultiplicities() batch accessor instead")

◆ VDegree()

int Convert_ElementarySurfaceToBSplineSurface::VDegree ( ) const

Returns the degree in the V parametric direction.

◆ VKnot()

double Convert_ElementarySurfaceToBSplineSurface::VKnot ( const int VIndex) const

Returns the V-knot of range VIndex.

Exceptions
Standard_OutOfRangeif VIndex is out of bounds
Deprecated
("Use VKnots() batch accessor instead")

◆ VKnots()

const NCollection_Array1< double > & Convert_ElementarySurfaceToBSplineSurface::VKnots ( ) const

Returns the V-knots of the BSpline surface.

◆ VMultiplicities()

const NCollection_Array1< int > & Convert_ElementarySurfaceToBSplineSurface::VMultiplicities ( ) const

Returns the V-multiplicities of the BSpline surface.

◆ VMultiplicity()

int Convert_ElementarySurfaceToBSplineSurface::VMultiplicity ( const int VIndex) const

Returns the multiplicity of the V-knot of range VIndex.

Exceptions
Standard_OutOfRangeif VIndex is out of bounds
Deprecated
("Use VMultiplicities() batch accessor instead")

◆ Weight()

double Convert_ElementarySurfaceToBSplineSurface::Weight ( const int UIndex,
const int VIndex ) const

Returns the weight of the pole of index (UIndex, VIndex).

Exceptions
Standard_OutOfRangeif indices are out of bounds
Deprecated
("Use Weights() batch accessor instead")

◆ Weights()

const NCollection_Array2< double > & Convert_ElementarySurfaceToBSplineSurface::Weights ( ) const

Returns the weights of the BSpline surface.

Field Documentation

◆ myIsUPeriodic

bool Convert_ElementarySurfaceToBSplineSurface::myIsUPeriodic = false
protected

◆ myIsVPeriodic

bool Convert_ElementarySurfaceToBSplineSurface::myIsVPeriodic = false
protected

◆ myNbUKnots

int Convert_ElementarySurfaceToBSplineSurface::myNbUKnots
protected

◆ myNbUPoles

int Convert_ElementarySurfaceToBSplineSurface::myNbUPoles
protected

◆ myNbVKnots

int Convert_ElementarySurfaceToBSplineSurface::myNbVKnots
protected

◆ myNbVPoles

int Convert_ElementarySurfaceToBSplineSurface::myNbVPoles
protected

◆ myPoles

NCollection_Array2<gp_Pnt> Convert_ElementarySurfaceToBSplineSurface::myPoles
protected

◆ myUDegree

int Convert_ElementarySurfaceToBSplineSurface::myUDegree = 0
protected

◆ myUKnots

NCollection_Array1<double> Convert_ElementarySurfaceToBSplineSurface::myUKnots
protected

◆ myUMults

NCollection_Array1<int> Convert_ElementarySurfaceToBSplineSurface::myUMults
protected

◆ myVDegree

int Convert_ElementarySurfaceToBSplineSurface::myVDegree = 0
protected

◆ myVKnots

NCollection_Array1<double> Convert_ElementarySurfaceToBSplineSurface::myVKnots
protected

◆ myVMults

NCollection_Array1<int> Convert_ElementarySurfaceToBSplineSurface::myVMults
protected

◆ myWeights

NCollection_Array2<double> Convert_ElementarySurfaceToBSplineSurface::myWeights
protected

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