This method of the Direct3dRMMesh Class sets the vertex positions for a specified group in a Direct3dRMMesh object.
public void setVertices(int id, int idx, int vCount, Direct3dRMVertex[] v);
id | The group identifier. This identifier must have been produced by using the addGroup method. |
idx | The index of the first D3dRMVertex object to set. The idx parameter is used in an internal data structure, not the v array. The structure uses the following format:
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 vertices in the array. |
v | An array of D3dRMVertex objects specifying the vertex positions to be set. |
Vertices are local to the group. If an application needs to share vertices between two different groups (for example, if neighboring faces in a mesh are different colors), the vertices must be duplicated in both groups.