public Prim(HodReader r) { FaceType = r.ReadInt16(); NumIndices = r.ReadInt32(); for (int i = 0; i < NumIndices; i++) { Indices[i] = r.ReadInt16(); } }
public BmshGroup(HodReader r) { MatIndex = r.ReadInt32(); VertexFlags = r.ReadInt16(); // XXX: May be longer? NumVerts = r.ReadInt32(); Verts = new FatVertex[NumVerts]; for (int i = 0; i < NumVerts; i++) { Verts[i] = new FatVertex(r, VertexFlags); } NumPrims = r.ReadInt16(); Prims = new Prim[NumPrims]; for (int i = 0; i < NumPrims; i++) { Prims[i] = new Prim(r); } }