AoMEngineLibrary.Graphics.Grn.Nodes.GrnMeshTrianglesNode.ReadData C# (CSharp) Method

ReadData() public method

public ReadData ( GrnBinaryReader reader, int directoryOffset ) : void
reader GrnBinaryReader
directoryOffset int
return void
        public override void ReadData(GrnBinaryReader reader, int directoryOffset)
        {
            reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin);
            for (int i = 0; i < this.GetReadDataLength() / 24; ++i)
            {
                this.Faces.Add(new Face());
                this.Faces[i].Indices.Add((Int16)reader.ReadInt32());
                this.Faces[i].Indices.Add((Int16)reader.ReadInt32());
                this.Faces[i].Indices.Add((Int16)reader.ReadInt32());
                this.Faces[i].NormalIndices.Add(reader.ReadInt32());
                this.Faces[i].NormalIndices.Add(reader.ReadInt32());
                this.Faces[i].NormalIndices.Add(reader.ReadInt32());
            }
        }