API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Vertex Container Object Functions > IG_vect_vertexcont_get_attrib |
This function gets the vertex attributes if present.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_vertexcont_get_attrib( HIG_VECT_VERTEXCONT hVertexcont, IGVectVertex* lpVertex, enumIGVectVertexData* lpAttribType, FLOAT* lpAttrib ); |
Name | Type | Description |
---|---|---|
hVertexcont | HIG_VECT_VERTEXCONT | Handle to the Vertex Container. |
lpVertex | IGVectVertex* | Pointer to the vertex. |
lpAttribType | enumIGVectVertexData* | Buffer for the attribute type. NULL is returned if vertex has no attributes. |
LpAttrib | FLOAT* | Buffer for the attribute value. Null is returned if vertex has no attributes. |
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None
Currently every vertex can only have an attribute of the type float. If the vertex has an attribute, its type is returned with the parameter lpAttribType and value with lpAttrib. Otherwise, both lpAttribType and lpAttrib return NULL.