HandMeshVertexState.GetVertices(HandMeshVertex[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for