Apply Material to Editable Mesh

How could i add the deafult grass material to triangles of an editableMesh?