STK Graphics PrimitivesSend comments on this topic.
SetTextureCoordinates Method (IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters)
See Also
TextureCoordinates
An array containing the texture coordinates (in the order x, y) for the mesh. There must be one texture coordinate for each position passed to the Triangle Mesh Primitive's Set method.
Windows





Windows & Linux

Description

Defines a collection of texture coordinates.

Syntax

[Visual Basic .NET]
Public Sub SetTextureCoordinates( _
    ByVal TextureCoordinates As System.Array _
)
[C#]
public void SetTextureCoordinates(
    System.Array TextureCoordinates
);
[Managed C++]
public: void SetTextureCoordinates(
    System::Array ^ TextureCoordinates
);
[Unmanaged C++]
public: HRESULT SetTextureCoordinates(
    SAFEARRAY * * TextureCoordinates
);
[Java]
public void setTextureCoordinates(
    AgSafeArray TextureCoordinates
);
[Python - STK API ]
def SetTextureCoordinates(self, TextureCoordinates:list) -> None:

Parameters

TextureCoordinates
An array containing the texture coordinates (in the order x, y) for the mesh. There must be one texture coordinate for each position passed to the Triangle Mesh Primitive's Set method.

See Also

Example

Shows the format of the TextureCoordinates parameter when setting per vertex texture coordinates.
[C#]
Array coordinates = new object[]
{
    0, 0, 1, 1,
    0, 0, 1, 1
};

IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters parameters = sceneManager.Initializers.TriangleMeshPrimitiveOptionalParameters.Initialize();
parameters.SetTextureCoordinates(ref coordinates);
Shows the format of the TextureCoordinates parameter when setting per vertex texture coordinates.
[Visual Basic .NET]
Dim coordinates As Array = New Object() {0, 0, 1, 1, 0, 0, _
	1, 1}

Dim parameters As IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters = sceneManager.Initializers.TriangleMeshPrimitiveOptionalParameters.Initialize()
parameters.SetTextureCoordinates(coordinates)
© 2024 Analytical Graphics, Inc. All Rights Reserved.