예제 #1
0
        private void readPointList(BinaryReader inStream)
        {
            int v1, v2, v3;
            int triangles = readShort(inStream);

            for (int i = 0; i < triangles; i++)
            {
                v1 = readShort(inStream);
                v2 = readShort(inStream);
                v3 = readShort(inStream);

                readShort(inStream);

                currentObject.addTriangle(currentObject.vertex(v1),
                                          currentObject.vertex(v2),
                                          currentObject.vertex(v3));
            }
        }