MShow_Vertex_Colors_By_Value

Functions

void MShow_Specific_Vertex_Colors_By_Value (HC_KEY key, const char *type, int count, const int *offsets, HC_RGB *rgb)
 Shows the color of a set of vertices at once. More...
 
void MShow_Vertex_Colors_By_Value (HC_KEY key, const char *type, int offset, int count, HC_RGB *rgb)
 Returns vertex color settings from a vertex, edge, or face without having to open the vertex. More...
 

Detailed Description

Function Documentation

◆ MShow_Specific_Vertex_Colors_By_Value()

void MShow_Specific_Vertex_Colors_By_Value ( HC_KEY  key,
const char *  type,
int  count,
const int *  offsets,
HC_RGB *  rgb 
)

Shows the color of a set of vertices at once.

Parameters
keyThe unique identifier returned by a previous call to Insert_Mesh(), Insert_Shell(), or Insert_PolyCylinder().
typeA list of which color types are to be affected. Currently the legal values for this parameter are "markers", "vertex", "edges", or "faces". Not case-sensitive.
countThe number of values contained in offsets.
offsetsOffsets of the points in the surface definition on which to work.
rgb- Array of (r, g, b) triplets. Passed by reference. Returned to user.

DETAILS

This function allows the user to modify the colors on a set of arbitrary vertices, as opposed to a range of adjacent vertices.

See also
Set_Color, Set_Color_By_Value, Set_Color_By_Index, Set_Rendering_Options, Set_Normal, Define_Texture, Open_Vertex, MSet_Vertex_Colors_By_Value, MUnSet_Specific_Vertex_Colors, MUnSet_Vertex_Colors

◆ MShow_Vertex_Colors_By_Value()

void MShow_Vertex_Colors_By_Value ( HC_KEY  key,
const char *  type,
int  offset,
int  count,
HC_RGB *  rgb 
)

Returns vertex color settings from a vertex, edge, or face without having to open the vertex.

Parameters
key- Key to the piece of geometry to query.
type- Type of geometry referred to by key. This can be either "vertex", "edge", or "face"
offset- Index of the key's point array on which to start querying values.
count- Number of points from offset to query.
rgb- Array of (r, g, b) triplets. Passed by reference. Returned to user.
See also
MSet_Vertex_Colors_By_Value, MSet_Vertex_Colors_By_FIndex, MShow_Vertex_Colors_By_FInd, MShow_Face_Colors_By_FIndex, MShow_Face_Colors_By_Value, MShow_Face_Regions, Insert_Shell, Show_Shell, Edit_Shell_Faces, Edit_Shell_Points