Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometry::setControlPoints Method
Syntax
C++
virtual OdResult setControlPoints(int iUCount, int iVCount, const OdGePoint3dArray& points) = 0;

Sets the control points. 

 

Parameters
Description
iUCount
[in] New value of the quantity of control points in the U direction.
iVCount
[in] New value of the quantity of control points in the V direction.
points
[in] New array of control points (in WCS coordinates).

eOk if control points were successfully set or an appropriate error code otherwise.

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 indices are for the V direction, and row indices 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-2022. Open Design Alliance All rights reserved.