C++
virtual ACDBCORE2D_PORT short* colors() const;
Description
Returns a pointer to an array of AutoCAD color indices, one for each face in the mesh or shell the AcGiFaceData object is used with. If the color's data array has not been set, then NULL is returned.
The pointer returned by this function points to the actual array in use by the graphics system, not a copy. Do not free or delete this array unless the array's memory was dynamically allocated and the worldDraw() or viewportDraw() function it's being used within is about to return.