Skip to content

MeshTextureCoordinateList

Public Class

Provides access to the Vertex Texture coordinates of a Mesh.

Inheritance Hierarchy

System.Object
Rhino.Geometry.Collections.MeshTextureCoordinateList

Namespace: Rhino.Geometry.Collections

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class MeshTextureCoordinateList : IResizableList<Point2f>,
IList<Point2f>, ICollection<Point2f>, IEnumerable<Point2f>,
IEnumerable, IList, ICollection, IReadOnlyList<Point2f>,
IReadOnlyCollection<Point2f>

The MeshTextureCoordinateList type exposes the following members.

Properties

Name

Description


Public Property

Gets or sets the total number of texture coordinates the internal data structure can hold without resizing.


Public Property

Gets or sets the number of texture coordinates.


Public Property

Gets or sets the texture coordinate at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.


Methods

Name

Description


Public Method

Adds a new texture coordinate to the end of the Texture list.


Public Method

Adds a new texture coordinate to the end of the Texture list.


Public Method

Adds a new texture coordinate to the end of the Texture list.


Public Method

Adds a new texture coordinate to the end of the Texture list.


Public Method

Appends an array of texture coordinates.


Public Method

Clears the Texture Coordinate list on the mesh.


Public Method

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

Subsequent calls can add new items.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

Gets an enumerator that yields all texture coordinates in this collection.


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Scales the texture coordinates so the texture domains are [0,1] and eliminate any texture rotations.


Public Method

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 Method

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 Method

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 Method

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 Method

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 Method

Sets all texture coordinates in one go.


Public Method

Set all texture coordinates based on a texture mapping function


Public Method

Copies all vertices to a linear array of float in u,v order


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

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.