public IndexList(StreamChunk indexStream)
{
this.indices = new short[indexStream.VertexCount];
this.used = new bool[indexStream.VertexCount / 3];
// Copy indices
using (var ms = new System.IO.MemoryStream(indexStream.VertexData, false))
using (var br = new System.IO.BinaryReader(ms))
{
for (var i = 0; i < indexStream.VertexCount; i++)
{
indices[i] = br.ReadInt16();
}
}
}