MeshTextureCoordinates - PYTHON 不支持

Returns the normalized 2-D texture coordinates of a mesh object.  

语法

Rhino.MeshTextureCoordinates (strObject)

参数

strObject

Required.字符串。The identifier of a mesh object.

返回值

Array

An array of 2-D points that define the texture coordinates of the mesh if successful.Each 2-D point is normalized, that is, each coordinate component ranges in value between 0 and 1.The number of elements in the array will be equal to the value returned by MeshVertexCount.In which case, the array will identify the texture coordinate for each vertex return by MeshVertices.

Null

If the mesh does not contain texture coordinates, if not successful, or on error.

示例

Const rhObjectMesh = 32

Dim strObject, arrTextures, arrTexture

strObject = Rhino.GetObject("Select mesh", rhObjectMesh)

arrTextures = Rhino.MeshTextureCoordinates(strObject)

If IsArray(arrTextures) Then

For Each arrTexture in arrTextures

Rhino.Print CStr(arrTexture(0)) & "," & CStr(arrTexture(1))

Next

End If

同见

MeshHasTextureCoordinates

MeshVertexCount

MeshVertices