This method of the Direct3dRMMesh Class retrieves the number of groups for a given Direct3dRMMesh object.
public int getGroupCount();
Returns the number of groups if successful; otherwise, returns zero.