This function initializes a Bezier surface. It sets counts of control points and surface degrees in both directions.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_beziersurface_init( HIG_VECT_ENTITY hEntity, long m, long n, long nMDegree, long nNDegree ); |
Name | Type | Description |
---|---|---|
hEntity | HIG_VECT_ENTITY | Handle to the entity of type IG_VECT_ENT_BEZIER_SURFACE. |
m | long | Count of control points in M direction. |
n | long | Count of control points in N direction. |
nMDegree | long | Surface degree in M direction. |
nNDegree | long | Surface degree in N direction. |
This function does not process image pixels.
None
M and N directions can be interpreted as columns and rows in the surface's mesh.
The function initializes all control points with (0, 0, 0). Use IG_vect_beziersurface_set_point for setting control point values. You can call this function on an IG_VECT_ENT_BEZIER_SURFACE that has been initialized already. In this case, the object will be fully re-initialized; no control point values will be preserved.