This is a method of the IDirect3dRMMesh Interface.
public Direct3dRMMaterial getGroupMaterial(int id);