API Reference > OdDb Classes > OdDbNurbSurface Class > OdDbNurbSurface Methods > OdDbNurbSurface::setControlPoints Method
OdDbNurbSurface::setControlPoints Method
Syntax
C++
OdResult setControlPoints(int iUCount, int iVCount, const OdGePoint3dArray& points);
Parameters 
Description 
int iUCount 
[in] The new value of the quantity of control points in the u direction.  
int iVCount 
[in] The new value of the quantity of control points in the v direction.  
const OdGePoint3dArray& points 
[in] New array of control points (in WCS coordinates).
 

Returns eOk if control points were successfully set or an appropriate error code in other case. Returns eFail if the surface doesn't contain the control point information. Returns eInvalidInput if the uCount and vCount are not the same as the current numbers.

Sets the control points. 

 

The new quantity of control points in the u and v direction must be equal to the current values. New control points are allocated in an AcGePoint3d array. The column indexes are for the v direction, and row indexes are for the u direction. For example, if the surface has n control points in the u direction and m control points in the v direction, the array looks like [0,0], [0,1], ...[0,vCount-1], ..., [uCount-1,0], [uCount-1,1], ...[uCount-1,vCount-1].

Copyright © 2002–2020. Open Design Alliance. All rights reserved.