RFNurbsSurface.GetHControlPoints
Description
Retrieves the number of control points of the NURBS surface and collects homogeneous control point coordinates in an RFHPoint array.
Syntax
Function RFNurbsSurface.GetHControlPoints(pCtrlPoint As RFHPoint,
pPtsCount As Long) As RFErrorCode
The GetHControlPoints syntax has these parts:
| Part |
Description |
| pCtrlPoint |
[OUT] RFHPoint Required. The first element of RFHPoint array to store control points. |
| pPtsCount |
[OUT] Long Required. The number of control points of the NURBS surface. |
Remarks
- Control points are stored as follows,
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.
- The memory storage space of pCtrlPoint array needs to be allocated prior to calling this method. The required array size can be obtained by RFNurbsSurface.GetControlpointCount method which returns the number of control points of the NURBS surface.
Return to Rapidform Index