MeshTextureCoordinateList.SetTextureCoordinate Method (Int32, Double, Double)

MeshTextureCoordinateListSetTextureCoordinate Method (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.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool SetTextureCoordinate(
	int index,
	double s,
	double t
)
Public Function SetTextureCoordinate ( 
	index As Integer,
	s As Double,
	t As Double
) As Boolean

Parameters

index
Type: SystemInt32
Index of texture coordinate to set.
s
Type: SystemDouble
S component of texture coordinate.
t
Type: SystemDouble
T component of texture coordinate.

Return Value

Type: Boolean
true on success, false on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also