Click or drag to resize

MeshVertexColorList Methods

The MeshVertexColorList type exposes the following members.

Methods
  NameDescription
Public methodAdd(Color)
Adds a new vertex color to the end of the color list.
Public methodAdd(Int32, Int32, Int32)
Adds a new vertex color to the end of the color list.
Public methodAppendColors
Appends a collection of colors to the vertex color list. For the Mesh to be valid, the number of colors must match the number of vertices.
Public methodClear
Clears the vertex color list on the mesh.
Public methodCreateMonotoneMesh
Constructs a valid vertex color list consisting of a single color.
Public methodDestroy
Releases all memory allocated to store vertex colors. The list capacity will be 0 after this call.

Subsequent calls can add new items.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator that yields all colors in this collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetColor(Int32, Color)
Sets or adds a vertex to the Vertex List.

If [index] is less than [Count], the existing vertex at [index] will be modified.

If [index] equals [Count], a new vertex is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

Public methodSetColor(MeshFace, Color)
Sets a color at the three or four vertex indices of a specified face.
Public methodSetColor(Int32, Int32, Int32, Int32)
Sets or adds a vertex color to the color List.

If [index] is less than [Count], the existing vertex at [index] will be modified.

If [index] equals [Count], a new vertex is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

Public methodCode exampleSetColors
Sets all the vertex colors in one go. For the Mesh to be valid, the number of colors must match the number of vertices.
Public methodToString (Inherited from Object.)
Top
See Also