MeshTextureCoordinateList

References
Provides access to the Vertex Texture coordinates of a Mesh.

Properties

Capacity

#Since v6.0
public int Capacity { get; set; }
Gets or sets the total number of texture coordinates the internal data structure can hold without resizing.

Count

#Since v5.0
public int Count { get; set; }
Gets or sets the number of texture coordinates.
Count
Explicit

ICollection<Point2f>.IsReadOnly

#
Explicit

ICollection.IsSynchronized

#
bool ICollection.IsSynchronized
Explicit

ICollection.SyncRoot

#
Explicit

IList.IsFixedSize

#
bool IList.IsFixedSize
Explicit

IList.IsReadOnly

#
bool IList.IsReadOnly

Indexers

Explicit

IList.this[]

#
object IList.this[int index]
index (int)

this[]

#
public Point2f this[int index] { get; set; }
Gets or sets the texture coordinate at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.
index (int)Index of texture coordinates to access.
The texture coordinate at [index].
IndexOutOfRangeExceptionThrown when the index is invalid.

Methods

Add

#Since v5.0
public int Add(double s, double t)
Adds a new texture coordinate to the end of the Texture list.
s (double)S component of new texture coordinate.
t (double)T component of new texture coordinate.
The index of the newly added texture coordinate.

Add

#Since v5.0
public int Add(float s, float t)
Adds a new texture coordinate to the end of the Texture list.
s (float)S component of new texture coordinate.
t (float)T component of new texture coordinate.
The index of the newly added texture coordinate.

Add

#Since v5.0
public int Add(Point2f tc)
Adds a new texture coordinate to the end of the Texture list.
tc (Point2f)Texture coordinate to add.
The index of the newly added texture coordinate.

Add

#Since v5.0
public int Add(Point3d tc)
Adds a new texture coordinate to the end of the Texture list.
tc (Point3d)Texture coordinate to add.
The index of the newly added texture coordinate.

AddRange

#Since v5.0
public bool AddRange(Point2f[] textureCoordinates)
Appends an array of texture coordinates.
textureCoordinates (Point2f[])Texture coordinates to append.
true on success, false on failure.

Clear

#Since v5.0
public void Clear()
Clears the Texture Coordinate list on the mesh.

Destroy

#Since v6.0
public void Destroy()
Releases all memory allocated to store texture coordinates. The list capacity will be 0 after this call.

Subsequent calls can add new items.

GetEnumerator

#Since v5.0
public IEnumerator<Point2f> GetEnumerator()
Gets an enumerator that yields all texture coordinates in this collection.
The enumerator.

NormalizeTextureCoordinates

#Since v5.0
public bool NormalizeTextureCoordinates()
Scales the texture coordinates so the texture domains are [0,1] and eliminate any texture rotations.
true on success, false on failure.

ReverseTextureCoordinates

#Since v5.0
public bool ReverseTextureCoordinates(int direction)
Reverses one coordinate direction of the texture coordinates.

The region of the bitmap the texture uses does not change. Either Us or Vs direction is flipped.

direction (int)

0 = first texture coordinate is reversed.

1 = second texture coordinate is reversed.

true if operation succeeded; otherwise, false.

SetTextureCoordinate

#Since v5.0
public bool SetTextureCoordinate(int index, double s, double t)
Sets or adds a texture coordinate to the Texture Coordinate List.

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

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

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

index (int)Index of texture coordinate to set.
s (double)S component of texture coordinate.
t (double)T component of texture coordinate.
true on success, false on failure.

SetTextureCoordinate

#Since v5.0
public bool SetTextureCoordinate(int index, float s, float t)
Sets or adds a texture coordinate to the Texture Coordinate List.

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

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

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

index (int)Index of texture coordinate to set.
s (float)S component of texture coordinate.
t (float)T component of texture coordinate.
true on success, false on failure.

SetTextureCoordinate

#Since v5.0
public bool SetTextureCoordinate(int index, Point2f tc)
Sets or adds a texture coordinate to the Texture Coordinate List.

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

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

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

index (int)Index of texture coordinate to set.
tc (Point2f)Texture coordinate point.
true on success, false on failure.

SetTextureCoordinate

#Since v5.0
public bool SetTextureCoordinate(int index, Point3f tc)
Sets or adds a texture coordinate to the Texture Coordinate List.

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

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

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

index (int)Index of texture coordinate to set.
tc (Point3f)Texture coordinate point.
true on success, false on failure.

SetTextureCoordinates

#Since v5.0
public bool SetTextureCoordinates(Point2f[] textureCoordinates)
Sets all texture coordinates in one go.
textureCoordinates (Point2f[])Texture coordinates to assign to the mesh.
true on success, false on failure.

SetTextureCoordinates

#Since v5.0
public bool SetTextureCoordinates(TextureMapping mapping)
Set all texture coordinates based on a texture mapping function
mapping (TextureMapping)The new mapping type.
true on success, false on failure.
Explicit

ICollection<Point2f>.Add

#Since v5.0
void ICollection<Point2f>.Add(Point2f item)
item (Point2f)
Explicit

ICollection<Point2f>.Contains

#
item (Point2f)
Explicit

ICollection<Point2f>.CopyTo

#
void ICollection<Point2f>.CopyTo(Point2f[] array, int arrayIndex)
array (Point2f[])
arrayIndex (int)
Explicit

ICollection<Point2f>.Remove

#
item (Point2f)
Explicit

IList<Point2f>.IndexOf

#
int IList<Point2f>.IndexOf(Point2f item)
item (Point2f)
Explicit

IList<Point2f>.Insert

#
void IList<Point2f>.Insert(int index, Point2f item)
index (int)
item (Point2f)
Explicit

IList<Point2f>.RemoveAt

#
void IList<Point2f>.RemoveAt(int index)
index (int)
Explicit

ICollection.CopyTo

#
void ICollection.CopyTo(Array array, int index)
array (Array)
index (int)
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()
Explicit

IList.Add

#
int IList.Add(object value)
value (object)
Explicit

IList.Contains

#
bool IList.Contains(object value)
value (object)
Explicit

IList.IndexOf

#
int IList.IndexOf(object value)
value (object)
Explicit

IList.Insert

#
void IList.Insert(int index, object value)
index (int)
value (object)
Explicit

IList.Remove

#
void IList.Remove(object value)
value (object)
Explicit

IList.RemoveAt

#
void IList.RemoveAt(int index)
index (int)

ToFloatArray

#Since v6.0
public float[] ToFloatArray()
Copies all vertices to a linear array of float in u,v order
The float array.

TransposeTextureCoordinates

#Since v5.0
public bool TransposeTextureCoordinates()
Transposes texture coordinates.

The region of the bitmap the texture uses does not change. All texture coordinates rows (Us) become columns (Vs), and vice versa.

true on success, false on failure.