GeometricObjects Interface 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:


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 GetNumberOfControlPoints()
Returns the number control points of this CATPNurbs.
Returns:
The number of control points.
o GetOneControlPoint
public virtual GetOneControlPoint( iNum,
ioControlPoint)
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
public virtual GetOneWeight( iNum)
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 GetOriginalParametrisationDATA( ioCoefficient,
ioShift)
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
public virtual 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
public virtual Set( iNewKnotVector,
const iNewIsRational,
const iNewVertices,
const iNewWeights,
iNewSupport,
const iParameterizationOption= CatAutomaticParameterization)
Deprecated:
V5R14 SetData
o SetData
public virtual SetData( const iNewKnotVector,
const iNewIsRational,
const iNewVertices,
const iNewWeights,
iNewSupport,
const iParameterizationOption= CatAutomaticParameterization)
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
method.
o SetOneControlPoint
public virtual SetOneControlPoint( iNum,
const iNewCoord)
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 SetOneWeight( iNum,
iWeight)
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: CATGMGeometricInterfaces

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.