Beispiel #1
0
        private static ObjFace ParceFace(string line)
        {
            var vertices = line.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            var face = new ObjFace();

            foreach (var vertexString in vertices)
            {
                var faceVertex = ParseFaceVertex(vertexString);
                face.AddVertex(faceVertex);
            }

            return face;
        }
Beispiel #2
0
 public void AddFace(ObjFace face)
 {
     _faces.Add(face);
 }