Function SurfaceTool.setMaterial

Sets Material to be used by the Mesh you are constructing.

void setMaterial (
  Material material
) nothrow @nogc;