Microsoft SDK for Java

getVertices

This method of the Direct3dRMMesh Class retrieves the vertex positions for a specified group in a Direct3dRMMesh object.

Syntax

public void getVertices(int id, int idx, int vCount, Direct3dRMVertex[] v);

Parameters

id The group identifier. This identifier must have been produced by using the addGroup method.
idx The index of the D3dRMVertex object to return. The idx parameter is used in an internal data structure, not the v array. The structure follows the following formula:
D3DVECTOR position;    v[0]x  v[1]y  v[2]z
D3DVECTOR normal;      v[3]xn v[4]yn v[5]zn
D3DVALUE tu, tv;       v[6]   v[7]
D3DCOLOR color;        v[8]
                       v[9]x for the next D3dRMVector
vCount The number of D3dRMVertex objects (vertices) to retrieve.
v The array of D3dRMVertex objects that receives the vertex positions.

See Also

setVertices

© 1999 Microsoft Corporation. All rights reserved. Terms of use.