HandMeshVertexState.GetVertices(HandMeshVertex[]) Method

Definition

Fills a vertex buffer for this hand mesh model.

void GetVertices(winrt::array_view <HandMeshVertex> & vertices);
public void GetVertices(HandMeshVertex[] vertices);
function getVertices(vertices)
Public Sub GetVertices (vertices As HandMeshVertex())

Parameters

vertices
HandMeshVertex[]

The vertex buffer to fill.

Remarks

Get VertexCount first to know how many elements to allocate in the vertex buffer you pass in here.

The filled vertex positions and normals are expressed relative to the coordinate system returned by this state object's CoordinateSystem property. Each frame, you must always get the new vertices and then locate their new coordinate system to accurately position the hand mesh in the world.

The hand mesh's vertex buffer data will change each frame, while the vertex count will not. You can therefore refill the same vertex buffer every frame.

Applies to