Пример #1
0
 public Face(string face)
 {
     vertices = new FaceIndices[3];
     var vertexIndices = face.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
     vertices[0] = new FaceIndices(vertexIndices[0]);
     vertices[1] = new FaceIndices(vertexIndices[1]);
     vertices[2] = new FaceIndices(vertexIndices[2]);
 }
Пример #2
0
        public Face(string face)
        {
            vertices = new FaceIndices[3];
            var vertexIndices = face.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);

            vertices[0] = new FaceIndices(vertexIndices[0]);
            vertices[1] = new FaceIndices(vertexIndices[1]);
            vertices[2] = new FaceIndices(vertexIndices[2]);
        }