All Frameworks Class Hierarchy This Framework Previous Next Indexes
GeometricObjects Interface CATPNurbs
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---GeometricObjects.CATICGMUnknown
|
+---GeometricObjects.CATICGMObject
|
+---GeometricObjects.CATGeometry
|
+---GeometricObjects.CATCurve
|
+---GeometricObjects.CATPCurve
|
+---CATPNurbs
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATPNurbs
Interface representing a Nurbs curve in a surface space.
The CATPNurbs is created by the CreatePNurbs
method of the CATGeoFactory interface and deleted with the Remove method.
It is defined with:
CATKnotVector | KnotVector |
The knot vector for the polynomial basis definition |
CATMathSetOfPoints | Vertices |
The set of control points |
CATBoolean | IsRational |
1 if the nurbs is rational, else 0 |
double[] | Weigths |
The weigths array if IsRational |
CATSurface | iSupport |
The surface on which the Nurbs is defined |
- See also:
- CATKnotVector
Method Index
- o
GetNumberOfControlPoints()
- Returns the number control points of this CATPNurbs.
- o
GetOneControlPoint(CATLONG32,CATSurParam&)
- Retrieves the parameter of a control point of this CATPNurbs.
- o
GetOneWeight(CATLONG32)
- Returns the weight associated with a control point of this CATPNurbs.
- o
GetOriginalParametrisationDATA(double&,double&)
- Gets the original parameterization.
- o
IsRational()
- Tests if this CATPNurbs is rational.
- o
Set(CATKnotVector&,CATLONG32&,double*,double*,CATSurface*,CATParameterizationOption)
-
- o
SetData(CATKnotVector&,CATLONG32&,double*,double*,CATSurface*,CATParameterizationOption)
- Modifies all the characteristics of this CATPNurbs.
- o
SetOneControlPoint(CATLONG32,CATSurParam&)
- Modifies a control point definition of this CATPNurbs.
- o
SetOneWeight(CATLONG32,double)
- Modifies the weight associated with a control point of this CATPNurbs.
Methods
o GetNumberOfControlPoints
public virtual CATLONG32 GetNumberOfControlPoints( | )const = 0 |
-
Returns the number control points of this CATPNurbs.
- Returns:
- The number of control points.
o GetOneControlPoint
-
Retrieves the parameter of a control point of this CATPNurbs.
- Parameters:
-
- iNum
- The control point number starting at 1.
- ioControlPoint
- The parameter corresponding to the iNum-th control point.
o GetOneWeight
-
Returns the weight associated with a control point of this CATPNurbs.
- Parameters:
-
- iNum
- The control point number starting at 1.
- return
- The associated weight.
o GetOriginalParametrisationDATA
public virtual void GetOriginalParametrisationDATA( | double& | ioCoefficient, |
| double& | ioShift) =0 |
-
Gets the original parameterization.
If created with the CatAutomaticParameterization default mode by the factory, the Nurbs
is internally re-parameterized. This allows you to recover the coefficient and the shift that
correspond to your own parameterization.
- Parameters:
-
- ioCoefficient
- The multiplicative coefficent.
- ioShift
- The shift.
o IsRational
-
Tests if this CATPNurbs is rational.
- Returns:
- The result of the test.
Legal values:
- FALSE
- if it is not rational.
- TRUE
- if it is rational.
o Set
-
- Deprecated:
- V5R14 SetData
o SetData
-
Modifies all the characteristics of this CATPNurbs.
- Parameters:
-
- iNewKnotVector
- The new definition of the polynomial basis.
- iNewIsRational
- Legal values:
- FALSE
- if it is not rational.
- TRUE
- if it is rational.
- iNewVertices
- The set of new control points.
- iNewWeights
- The array of corresponding weights (one weight per control point).
- iNewSupport
- The new surface on which this CATPNurbs will be defined.
- iParameterizationOption
- The option of parameterization. By default, the parameterization of the NURBS is modified to better
fit internal criteria. In this case, you can recover the initial parameterization
with the
CATPNurbs.GetOriginalParametrisationDATA method.
o SetOneControlPoint
-
Modifies a control point definition of this CATPNurbs.
- Parameters:
-
- iNum
- The control point number starting at 1.
- iNewCoord
- The new parameter of the iNum-th control point.
o SetOneWeight
public virtual void SetOneWeight( | CATLONG32 | iNum, |
| double | iWeight) = 0 |
-
Modifies the weight associated with a control point of this CATPNurbs.
- Parameters:
-
- iNum
- The control point number starting at 1.
This object is included in the file: CATPNurbs.h
If needed, your Imakefile.mk should include the module: CATGeometricObjects