MeshTextureCoordinateList

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

Properties

Capacity

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

Count

#Since v5.0
Gets or sets the number of texture coordinates.
public int Count { get; set; }
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[
index
]

this[]

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

Methods

Add

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

Add

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

Add

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

Add

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

AddRange

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

Clear

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

Destroy

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

Subsequent calls can add new items.

public void Destroy()

GetEnumerator

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

NormalizeTextureCoordinates

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

ReverseTextureCoordinates

#Since v5.0
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.

public bool ReverseTextureCoordinates(
direction

0 = first texture coordinate is reversed.

1 = second texture coordinate is reversed.

)
true if operation succeeded; otherwise, false.

SetTextureCoordinate

#Since v5.0
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.

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

SetTextureCoordinate

#Since v5.0
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.

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

SetTextureCoordinate

#Since v5.0
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.

public bool SetTextureCoordinate(
index,
Index of texture coordinate to set.
tc
Texture coordinate point.
)
true on success, false on failure.

SetTextureCoordinate

#Since v5.0
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.

public bool SetTextureCoordinate(
index,
Index of texture coordinate to set.
tc
Texture coordinate point.
)
true on success, false on failure.

SetTextureCoordinates

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

SetTextureCoordinates

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

ICollection<Point2f>.Add

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

ICollection<Point2f>.Contains

#
Explicit

ICollection<Point2f>.CopyTo

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

ICollection<Point2f>.Remove

#
Explicit

IList<Point2f>.IndexOf

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

IList<Point2f>.Insert

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

IList<Point2f>.RemoveAt

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

ICollection.CopyTo

#
void ICollection.CopyTo(
array,
index
)
Explicit

IEnumerable.GetEnumerator

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

IList.Add

#
int IList.Add(
value
)
Explicit

IList.Contains

#
bool IList.Contains(
value
)
Explicit

IList.IndexOf

#
int IList.IndexOf(
value
)
Explicit

IList.Insert

#
void IList.Insert(
index,
value
)
Explicit

IList.Remove

#
void IList.Remove(
value
)
Explicit

IList.RemoveAt

#
void IList.RemoveAt(
index
)

ToFloatArray

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

TransposeTextureCoordinates

#Since v5.0
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.

public bool TransposeTextureCoordinates()
true on success, false on failure.