Description
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.
Syntax
| [Visual Basic .NET] |
|---|
Public Sub SetWithOptionalParameters( _
ByRef Positions() As Variant, _
ByRef Normals() As Variant, _
ByRef Indices() As Variant, _
ByVal OptionalParameters As IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters _
)
|
Parameters
- 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.
Remarks
See Triangle Mesh Primitive Optional Parameters for details on how to define parameters.
Example
Shows the format of
the Positions, Normals and Indices parameters when updating a
triangle mesh primitive.
| [C#] | Copy Code
|
|
|---|---|---|
|
||
Shows the format of
the Positions, Normals and Indices parameters when updating a
triangle mesh primitive.
| [Visual Basic .NET] | Copy Code
|
|
|---|---|---|
|
||