All Frameworks Class Hierarchy This Framework Next Indexes
FreeFormOperators Class CATConvertCrvToNurbsCrv
Mathematics.CATCGMVirtual
|
+---CATConvertCrvToNurbsCrv
Usage: you must use this class as is. You should never derive it.
public class CATConvertCrvToNurbsCrv
- Deprecated:
- V5R10 CATCrvFittingToNurbsCrv
Class defining a geometric operator that computes the NURBS representation of a CATCurve.
The following conversions are available:
- An input CATNurbsCurve or CATPNurbs is directly output:
the GetResult method outputs the same pointer.
- A CATCircle and CATEllipse give a rational CATNurbsCurve.
- A CATSplineCurve and CATLine give a CATNurbsCurve.
- A CATPNurbs, CATPCircle, CATPEllipse, CATPSpline, CATPLine can always be converted into a CATPNurbs,
that is rational for a CATPCircle and a CATPEllipse.
Moreover, if the supporting surface is a CATPlane they can also be converted into a CATNurbsCurve.
- A CATPLine can be converted in a CATNurbsCurve, if it is an iso-parametric curve that can be retrieved
by its supporting surface (ExtractIsopar) as a curve of an other type than a CATPLine.
- The CATEdgeCurve is converted according to the types of its inside curves.
The CATConvertCrvToNurbsCrv operator follows the global frame of the geometric operators:
- A CATConvertCrvToNurbsCrv operator is created with the CreateConvertCrvToNurbsCrv global method
and must be
directly deleted with the usual C++ delete operator after use.
It is is not streamable.
- In case of BASIC
mode, the operation is automatically performed at the operator creation.
In case of ADVANCED
mode, options can be precised with the SetXxx methods, before
asking for the computation with the Run method.
- In both cases, the result is accessed with the Getxxx methods.
Method Index
- o
ComputeNewParameter(CATCrvParam&)
- Maps a parameter on the initial curve to the corresponding parameter on the computed Nurbs representation.
- o
ForbidPeriodicity()
- Avoids to create periodic Nurbs representation.
- o
GetNurbsCurve()
- Returns the corresponding CATNurbsCurve, if the output dimension is 3.
- o
GetPNurbs()
- Returns the corresponding CATPNurbs, if the output dimension is 2.
- o
ImposeQuinticConversion()
- Sets the Nurbs degree to 5 for input circle or ellipse.
- o
Run()
- Runs this operator (ADVANCED mode).
- o
RunWithSameParametrisation()
- Runs this operator by keeping the same parameterization for the input
and resulting curve (ADVANCED mode).
- o
SetOutputDimension(CATLONG32&)
- Defines the dimension of the output Nurbs (ADVANCED mode).
- o
~()
-
Methods
o ComputeNewParameter
-
Maps a parameter on the initial curve to the corresponding parameter on the computed Nurbs representation.
- Parameters:
-
- iParamOnCurve
- The parameter on the initial curve.
- Returns:
- The parameter on the computed Nurbs representation.
o ForbidPeriodicity
public virtual void ForbidPeriodicity( | )= 0 |
-
Avoids to create periodic Nurbs representation.
By default, periodic representations can be created.
o GetNurbsCurve
-
Returns the corresponding CATNurbsCurve, if the output dimension is 3.
- Returns:
- The pointer to the created CATNurbsCurve. Use the
CATICGMContainer.Remove if you do not want to keep it in the geometric factory.
o GetPNurbs
-
Returns the corresponding CATPNurbs, if the output dimension is 2.
- Returns:
- The pointer to the created CATPNurbs. Use the
CATICGMContainer.Remove if you do not want to keep it in the geometric factory.
o ImposeQuinticConversion
public virtual void ImposeQuinticConversion( | )= 0 |
-
Sets the Nurbs degree to 5 for input circle or ellipse.
o Run
public virtual void Run( | )=0 |
-
Runs this operator (ADVANCED mode).
o RunWithSameParametrisation
public virtual int RunWithSameParametrisation( | )=0 |
-
Runs this operator by keeping the same parameterization for the input
and resulting curve (ADVANCED mode).
- Returns:
- 0 if the the parameterization is not kept, 1 if it is kept.
o SetOutputDimension
public virtual void SetOutputDimension( | const CATLONG32& | iOutputDim)=0 |
-
Defines the dimension of the output Nurbs (ADVANCED mode).
- Parameters:
-
- iOutputDim
- The dimension of the output Nurbs. By default (BASIC mode), the output dimension is 3.
Legal values:
- 2
- The result is a CATPNurbs. In this case, use the
GetPNurbs method to retrieve it.
- 3
- The result is a CATNurbsCurve. In this case, use the
GetNurbsCurve method to retrieve it.
o ~
public virtual ~CATConvertCrvToNurbsCr ~( | ) |
-
This object is included in the file: CATConvertCrvToNurbsCrv.h
If needed, your Imakefile.mk should include the module: CATFreeFormOperators