RFNurbsCurve.CreateApproximatedCurve2



Your Ad Here

Description

Creates the NURBS curve equation by approximating the specified point set.

Syntax

Function RFNurbsCurve.CreateApproximatedCurve2(dim As Long, degree As Long, newPtsCount As Long, fitAccuracy As Double, bClosed As Boolean, ptsCount As Long, pPts As RFPoint3) As RFErrorCode

The CreateApproximatedCurve2 syntax has these parts:

Part Description
dim [INLong Required. Dimension of the NURBS curve.
degree [INLong Required. Degree of the NURBS curve. It should be 2 at the current version.
newPtsCount [INLong Required. Number of target control points after the approximation.
fitAccuracy [INDouble Required. Approximation accuracy.
bClosed [INBoolean Required. It determines whether the approximated NURBS curve is closed or not.
ptsCount [INLong Required. Number of points to approximate.
pPts [INRFPoint3 Required. The first element of an RFPoint3 array containing point coordinates to approximate.

Settings

The degree has these settings:

Value Description
2 Approximation of points to create a 2D NURBS curve equation. All Z coordinate values in the pPts array are ignored.
3 Approximation of points to create a 3D NURBS curve equation.

The bClosed has these settings:

Value Description
TRUE The resulting NURBS curve has a same start and end point by sharing the first point of the specified point array pPts.
FALSE

Note

Return to Rapidform Index


Your Ad Here