This method of the Direct3dRMMesh Class sets the vertex positions for a specified group in a Direct3dRMMesh object, using an array of floats.
public void setVerticesAsFloats(int id, int idx, int vCount, float[] 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. |
vCount | The number of floats to set. |
v | An array of floats 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.