public void AddVertex(int vertice, int normal, int texture) { IndexesVertice.Add(vertice); if (normal != -1) { IndexesNormal.Add(normal); } if (texture != -1) { IndexesTexture.Add(texture); } }
public FaceObj(int[] vertices, int[] normals, int [] textures) { IndexesVertice.AddRange(vertices); IndexesNormal.AddRange(normals); IndexesTexture.AddRange(textures); }