This method of the Direct3dRMMeshBuilder Class sets the material of all the faces of a Direct3dRMMeshBuilder object.
public void setMaterial(Direct3dRMMaterial val);