Function MeshDataTool.setMaterial

Sets the material to be used by newly-constructed Mesh.

void setMaterial (
  Material material
) nothrow @nogc;