void AllocTriangleArray(int requestSize)
{
if (this.triangles == null
|| this.triangles.Length != requestSize
|| this.triangles == TRIANGLES
|| this.triangles == TRIANGLES_9_GRID
|| this.triangles == TRIANGLES_4_GRID)
this.triangles = new int[requestSize];
}