public TerrainTriangleHolder(int[] indices, Vector3[] vertices)
{
Bounds = Rect.Empty;
BoundsChanged = null;
if (indices.IsNullOrEmpty())
throw new InvalidDataException("Cannot create a TerrainTriangleHolder from a null or empty integer array.");
if (indices.Length != 3) throw new InvalidDataException("To create a TerrainTriangleHolder you need exactly 3 integers.");
if (vertices.IsNullOrEmpty())
throw new InvalidDataException("Cannot create a TerrainTriangleHolder from a null or empty vertex array.");
if (vertices.Length != 3) throw new InvalidDataException("To create a TerrainTriangleHolder you need exactly 3 vertices.");
Indices = indices;
CalculateBounds(vertices);
}