Open CASCADE Technology  7.7.0
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 (CylinderToBSplineSurface, ConeToBSplineSurface, SphereToBSplineSurface, TorusToBSplineSurface). 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. This data consists of the following: More...

#include <Convert_ElementarySurfaceToBSplineSurface.hxx>

Inheritance diagram for Convert_ElementarySurfaceToBSplineSurface:
Inheritance graph
[legend]

Public Member Functions

Standard_Integer UDegree () const
 
Standard_Integer VDegree () const
 Returns the degree for the u or v parametric direction of the BSpline surface whose data is computed in this framework. More...
 
Standard_Integer NbUPoles () const
 
Standard_Integer NbVPoles () const
 Returns the number of poles for the u or v parametric direction of the BSpline surface whose data is computed in this framework. More...
 
Standard_Integer NbUKnots () const
 
Standard_Integer NbVKnots () const
 Returns the number of knots for the u or v parametric direction of the BSpline surface whose data is computed in this framework . More...
 
Standard_Boolean IsUPeriodic () const
 
Standard_Boolean IsVPeriodic () const
 Returns true if the BSpline surface whose data is computed in this framework is periodic in the u or v parametric direction. More...
 
gp_Pnt Pole (const Standard_Integer UIndex, const Standard_Integer VIndex) const
 Returns the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework: More...
 
Standard_Real Weight (const Standard_Integer UIndex, const Standard_Integer VIndex) const
 Returns the weight of the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework: More...
 
Standard_Real UKnot (const Standard_Integer UIndex) const
 Returns the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots. More...
 
Standard_Real VKnot (const Standard_Integer UIndex) const
 Returns the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots. More...
 
Standard_Integer UMultiplicity (const Standard_Integer UIndex) const
 Returns the multiplicity of the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots. More...
 
Standard_Integer VMultiplicity (const Standard_Integer VIndex) const
 Returns the multiplicity of the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots. More...
 

Protected Member Functions

 Convert_ElementarySurfaceToBSplineSurface (const Standard_Integer NumberOfUPoles, const Standard_Integer NumberOfVPoles, const Standard_Integer NumberOfUKnots, const Standard_Integer NumberOfVKnots, const Standard_Integer UDegree, const Standard_Integer VDegree)
 

Protected Attributes

TColgp_Array2OfPnt poles
 
TColStd_Array2OfReal weights
 
TColStd_Array1OfReal uknots
 
TColStd_Array1OfInteger umults
 
TColStd_Array1OfReal vknots
 
TColStd_Array1OfInteger vmults
 
Standard_Integer udegree
 
Standard_Integer vdegree
 
Standard_Integer nbUPoles
 
Standard_Integer nbVPoles
 
Standard_Integer nbUKnots
 
Standard_Integer nbVKnots
 
Standard_Boolean isuperiodic
 
Standard_Boolean isvperiodic
 

Detailed Description

Root class for algorithms which convert an elementary surface (cylinder, cone, sphere or torus) into a BSpline surface (CylinderToBSplineSurface, ConeToBSplineSurface, SphereToBSplineSurface, TorusToBSplineSurface). 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. This data consists of the following:

Constructor & Destructor Documentation

◆ Convert_ElementarySurfaceToBSplineSurface()

Convert_ElementarySurfaceToBSplineSurface::Convert_ElementarySurfaceToBSplineSurface ( const Standard_Integer  NumberOfUPoles,
const Standard_Integer  NumberOfVPoles,
const Standard_Integer  NumberOfUKnots,
const Standard_Integer  NumberOfVKnots,
const Standard_Integer  UDegree,
const Standard_Integer  VDegree 
)
protected

Member Function Documentation

◆ IsUPeriodic()

Standard_Boolean Convert_ElementarySurfaceToBSplineSurface::IsUPeriodic ( ) const

◆ IsVPeriodic()

Standard_Boolean Convert_ElementarySurfaceToBSplineSurface::IsVPeriodic ( ) const

Returns true if the BSpline surface whose data is computed in this framework is periodic in the u or v parametric direction.

◆ NbUKnots()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::NbUKnots ( ) const

◆ NbUPoles()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::NbUPoles ( ) const

◆ NbVKnots()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::NbVKnots ( ) const

Returns the number of knots for the u or v parametric direction of the BSpline surface whose data is computed in this framework .

◆ NbVPoles()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::NbVPoles ( ) const

Returns the number of poles for the u or v parametric direction of the BSpline surface whose data is computed in this framework.

◆ Pole()

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

Returns the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework:

  • UIndex is outside the bounds of the poles table in the u parametric direction, or
  • VIndex is outside the bounds of the poles table in the v parametric direction.

◆ UDegree()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::UDegree ( ) const

◆ UKnot()

Standard_Real Convert_ElementarySurfaceToBSplineSurface::UKnot ( const Standard_Integer  UIndex) const

Returns the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots.

◆ UMultiplicity()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::UMultiplicity ( const Standard_Integer  UIndex) const

Returns the multiplicity of the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots.

◆ VDegree()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::VDegree ( ) const

Returns the degree for the u or v parametric direction of the BSpline surface whose data is computed in this framework.

◆ VKnot()

Standard_Real Convert_ElementarySurfaceToBSplineSurface::VKnot ( const Standard_Integer  UIndex) const

Returns the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots.

◆ VMultiplicity()

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::VMultiplicity ( const Standard_Integer  VIndex) const

Returns the multiplicity of the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots.

◆ Weight()

Standard_Real Convert_ElementarySurfaceToBSplineSurface::Weight ( const Standard_Integer  UIndex,
const Standard_Integer  VIndex 
) const

Returns the weight of the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework:

  • UIndex is outside the bounds of the poles table in the u parametric direction, or
  • VIndex is outside the bounds of the poles table in the v parametric direction.

Field Documentation

◆ isuperiodic

Standard_Boolean Convert_ElementarySurfaceToBSplineSurface::isuperiodic
protected

◆ isvperiodic

Standard_Boolean Convert_ElementarySurfaceToBSplineSurface::isvperiodic
protected

◆ nbUKnots

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::nbUKnots
protected

◆ nbUPoles

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::nbUPoles
protected

◆ nbVKnots

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::nbVKnots
protected

◆ nbVPoles

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::nbVPoles
protected

◆ poles

TColgp_Array2OfPnt Convert_ElementarySurfaceToBSplineSurface::poles
protected

◆ udegree

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::udegree
protected

◆ uknots

TColStd_Array1OfReal Convert_ElementarySurfaceToBSplineSurface::uknots
protected

◆ umults

TColStd_Array1OfInteger Convert_ElementarySurfaceToBSplineSurface::umults
protected

◆ vdegree

Standard_Integer Convert_ElementarySurfaceToBSplineSurface::vdegree
protected

◆ vknots

TColStd_Array1OfReal Convert_ElementarySurfaceToBSplineSurface::vknots
protected

◆ vmults

TColStd_Array1OfInteger Convert_ElementarySurfaceToBSplineSurface::vmults
protected

◆ weights

TColStd_Array2OfReal Convert_ElementarySurfaceToBSplineSurface::weights
protected

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