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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator that yields all colors in this collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also