Description
Defines the triangle mesh using an indexed
triangle list specified by positions, normals, and indices. The
mesh is rendered in the primitive's
Reference
Frame.
Syntax
[Visual Basic .NET] |
Public Sub Set( _
ByRef Positions As System.Array, _
ByRef Normals As System.Array, _
ByRef Indices As System.Array _
)
|
Parameters
Remarks
Example
Shows the format of
the Positions, Normals and Indices parameters when updating a
triangle mesh primitive.
[C#] |
Copy Code
|
Array positions = new object[]
{
0, 0, 0,
70000, 0, 0,
0, 70000, 0
};
Array normals = new object[]
{
0, 0, 1,
0, 0, 1,
0, 0, 1
};
Array indices = new object[]
{
0,
1,
2
};
triangleMesh.Set(ref positions, ref normals, ref indices);
|
|
Shows the format of
the Positions, Normals and Indices parameters when updating a
triangle mesh primitive.
[Visual Basic .NET] |
Copy Code
|
Dim positions As
Array = New Object() {0, 0,
0, 70000, 0, 0, _
0, 70000, 0}
Dim normals As Array =
New Object() {0, 0, 1, 0, 0, 1, _
0, 0, 1}
Dim indices As Array =
New Object() {0, 1, 2}
triangleMesh.[Set](positions, normals, indices)
|
|
See Also