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 | [IN] Long Required. Dimension of the NURBS curve. |
| degree | [IN] Long Required. Degree of the NURBS curve. It should be 2 at the current version. |
| newPtsCount | [IN] Long Required. Number of target control points after the approximation. |
| fitAccuracy | [IN] Double Required. Approximation accuracy. |
| bClosed | [IN] Boolean Required. It determines whether the approximated NURBS curve is closed or not. |
| ptsCount | [IN] Long Required. Number of points to approximate. |
| pPts | [IN] RFPoint3 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