Skip to content

Methods_T_Rhino_Geometry_Collections_MeshTextureCoordinateList

Will Pearson edited this page Aug 12, 2016 · 2 revisions

MeshTextureCoordinateList Methods

The MeshTextureCoordinateList type exposes the following members.

Methods

 

Name Description
Public method Add(Point2f) Adds a new texture coordinate to the end of the Texture list.
Public method Add(Point3d) Adds a new texture coordinate to the end of the Texture list.
Public method Add(Double, Double) Adds a new texture coordinate to the end of the Texture list.
Public method Add(Single, Single) Adds a new texture coordinate to the end of the Texture list.
Public method AddRange Appends an array of texture coordinates.
Public method Clear Clears the Texture Coordinate list on the mesh.
Public method Destroy 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 GetEnumerator 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 NormalizeTextureCoordinates Scales the texture coordinates so the texture domains are [0,1] and eliminate any texture rotations.
Public method ReverseTextureCoordinates 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 SetTextureCoordinate(Int32, Point2f) 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 SetTextureCoordinate(Int32, Point3f) 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 SetTextureCoordinate(Int32, Double, Double) 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 SetTextureCoordinate(Int32, Single, Single) 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 SetTextureCoordinates(Point2f[]) Sets all texture coordinates in one go.
Public method SetTextureCoordinates(TextureMapping) Set all texture coordinates based on a texture mapping function
Public method ToFloatArray 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 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.
  Back to Top

See Also

Reference

MeshTextureCoordinateList Class
Rhino.Geometry.Collections Namespace

Clone this wiki locally