ImageGear for C and C++ on Windows v19.1 - Updated
IG_vect_beziersurface_init
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Bezier Surface Functions > IG_vect_beziersurface_init

This function initializes a Bezier surface. It sets counts of control points and surface degrees in both directions.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_beziersurface_init(
   HIG_VECT_ENTITY hEntity,
   long m,
   long n,
   long nMDegree,
   long nNDegree
);

Arguments:

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.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Remarks:

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.