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>
|
| | 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.
|
| |
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.
◆ 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 |
◆ 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_OutOfRange | if indices are out of bounds |
- Deprecated
- ("Use Poles() batch accessor instead")
◆ Poles()
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_OutOfRange | if UIndex is out of bounds |
- Deprecated
- ("Use UKnots() batch accessor instead")
◆ UKnots()
Returns the U-knots of the BSpline surface.
◆ UMultiplicities()
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_OutOfRange | if 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_OutOfRange | if VIndex is out of bounds |
- Deprecated
- ("Use VKnots() batch accessor instead")
◆ VKnots()
Returns the V-knots of the BSpline surface.
◆ VMultiplicities()
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_OutOfRange | if 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_OutOfRange | if indices are out of bounds |
- Deprecated
- ("Use Weights() batch accessor instead")
◆ Weights()
Returns the weights of the BSpline surface.
◆ 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
◆ myUDegree
| int Convert_ElementarySurfaceToBSplineSurface::myUDegree = 0 |
|
protected |
◆ myUKnots
◆ myUMults
◆ myVDegree
| int Convert_ElementarySurfaceToBSplineSurface::myVDegree = 0 |
|
protected |
◆ myVKnots
◆ myVMults
◆ myWeights
The documentation for this class was generated from the following file: