Previous Up Next

M3setColorVertices
Takes a topology or a mesh as a parameter.
Redefines the colors attributed to the vertices in hexadecimal RGB format.
The '_num_' parameter specifies the texture number (1 or 2).
The topology associated to the mesh automatically switches to 'dynamic' mode (as opposed to 'static').

I M3setColorVertices (
S3d _session_
H3d _object_
I _numTex_
[I r1] _colors_
)
Parameters

_session_
3D Session
_object_
Topology or mesh
_numTex_
Texture number (1 or 2)
_colors_
List of colors to be attributed
Return value

0 if successful, otherwise nil
Remark

In the case of a multi-topo mesh, only the active topology is concerned.