Defines the triangle mesh using an indexed triangle list specified by positions, normals, indices, and optionalParameters. The mesh is rendered in the primitive's Reference Frame.
[Visual Basic .NET] |
---|
Public Sub SetWithOptionalParameters( _ ByVal Positions As System.Array, _ ByVal Normals As System.Array, _ ByVal Indices As System.Array, _ ByVal OptionalParameters As IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters _ ) |
[C#] |
---|
public void SetWithOptionalParameters( System.Array Positions, System.Array Normals, System.Array Indices, IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters OptionalParameters ); |
[Managed C++] |
---|
public: void SetWithOptionalParameters( System::Array ^ Positions, System::Array ^ Normals, System::Array ^ Indices, IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters ^ OptionalParameters ); |
[Unmanaged C++] |
---|
public: HRESULT SetWithOptionalParameters( SAFEARRAY * * Positions, SAFEARRAY * * Normals, SAFEARRAY * * Indices, IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters * OptionalParameters ); |
[Java] |
---|
public void setWithOptionalParameters( AgSafeArray Positions, AgSafeArray Normals, AgSafeArray Indices, IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters OptionalParameters ); |
[Python - STK API ] |
---|
def SetWithOptionalParameters(self, Positions:list, Normals:list, Indices:list, OptionalParameters:"IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters") -> None: |
- Positions
- An array containing positions (in the order x, y, z) for the triangle mesh.
- Normals
- An array containing the normals (in the order x, y, z) used for lighting the triangle mesh. There must be one normal for each position in positions.
- Indices
- An array of integers containing the indices into positions and normals. A set of x, y, and z elements is considered a single index. Every 3 indices represent 1 triangle.
- OptionalParameters
- Optional parameters corresponding to positions.
Shows the format of the Positions, Normals and Indices parameters when updating a triangle mesh primitive.
[C#] | ||
---|---|---|
|
Shows the format of the Positions, Normals and Indices parameters when updating a triangle mesh primitive.
[Visual Basic .NET] | ||
---|---|---|
|