ImageGear for C and C++ on Windows v19.6 - Updated
IG_vect_geom_get_normals
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Geometry Functions > IG_vect_geom_get_normals

The function returns the geometry normals in the range of nStart..nEnd.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_geom_get_normals(
        HIG_VECT_ENTITY hEntity, 
        VECT_REAL* lpNormals,
        long nStart,
        long nEnd
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Geometry entity handle.
lpNormals VECT_REAL* Buffer for the geometry normals.
nStart long Start index of the normal.
nEnd long End index of the normal.

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:

Using this function makes sense only if argument bUseNormals of IG_vect_geom_init() was set to VECT_TRUE.

The normal buffer must be long enough to receive (nEnd - nStart + 1) * 3 floating point values.