RFNurbsSurface.SetControlPoints
Description
Sets all the control points of the NURBS surface as specified.
Syntax
Function RFNurbsSurface.SetControlPoints(ptsCount As Long,
pCtrlPoint As RFPoint3) As RFErrorCode
The SetControlPoints syntax has these parts:
| Part |
Description |
| ptsCount |
[IN] Long Required. Number of control points to set. |
| pCtrlPoint |
[IN] RFPoint3 Required. The first element of RFPoint3 array containig control point coordinates. |
Remarks
- The size of control point RFPoint3 array pCtrlPoint, that is specified by ptsCount, should be the same as the number of control points of NURBS surface.
- Control points should be stored in following order,
pCtrlPoint (0) = Control Points (0,0)
pCtrlPoint (1) = Control Points (0,1)
pCtrlPoint (Vn - 1 ) = Control Points (0, Vn - 1)
pCtrlPoint (Vn) = Control Points (1,0)
pCtlPoint (Un X Vn -1) = Control Points (Un - 1, Vn - 1 )
where, Un = the number of control points in U parametric direction.
Vn = the number of control points in V parametric direction.
Control Points (i,j) = I'th in U parametric direction and j'th in V parametric direction control point of NURBS surface.
Return to Rapidform Index