Mesh.Clear Manual     Reference     Scripting  
Scripting > Runtime Classes > Mesh
Mesh.Clear

function Clear () : void

Description

Clears all vertex data and all triangle indices.

You should call this function before rebuilding triangles array.