RFNurbsCurve.CreateCanonical



Your Ad Here

Description

Creates the NURBS curve equation from specified canonical values.

Syntax

Function RFNurbsCurve.CreateCanonical(dim As Long, degree As Long, knotType As RFEndKnotType, knotCount As Long, pKnots As Double, ctrlPtsType As RFControlPointType, ctrlPtsCount As Long, ctrlPtsStride As Long, pCtrlPts As Double) As RFErrorCode

The CreateCanonical syntax has these parts:

Part Description
dim [INLong Required. Dimension of the NURBS curve.
degree [INLong Required. Degree of the NURBS curve ranging from 1 to 32.
knotType [INRFEndKnotType Required. Knot type at end parameters.
knotCount [INLong Required. Number of knots.
pKnots [INDouble Required. The first element of a Double array containing knot values.
ctrlPtsType [INRFControlPointType Required. Control point type.
ctrlPtsCount [INLong Required. Number of control points.
ctrlPtsStride [INLong Required. Number of elements to represent a single control point.
pCtrlPts [INDouble Required. First element of a Double array containing control point coordinates.

Settings

The dim has these settings:

Value Description
2 2D NURBS curve. All control points should be coordinated in the 2D space.
3 3D NURBS curve. All control points should be coordinated in the 3D space.

The ctrlPtsStride has these settings:

Value Description
2 Dimension of the NURBS curve is 2 and control point type is RF_CP_NON_RATIONAL.
3 Dimension of the NURBS curve is 2 and control point type is not RF_CP_NON_RATIONAL, or dimension of the NURBS curve is 3 and control point type is RF_CP_NON_RATIONAL.
4 Dimension of the NURBS curve is 3 and control point type is not RF_CP_NON_RATIONAL.

Remarks

 

Return to Rapidform Index


Your Ad Here