Exemplo n.º 1
0
            public static Face Parse(string values)
            {
                Face face = new Face();

                string[] splitted = values.Trim().Split(' ');
                foreach (var split in splitted)
                {
                    string[] numbers = split.Trim().Split('/');
                    face.AddComponent
                    (
                        new Component
                        (
                            (String.IsNullOrEmpty(numbers[0])) ? 0 : Int32.Parse(numbers[0]),
                            (String.IsNullOrEmpty(numbers[1])) ? 0 : Int32.Parse(numbers[1])
                        )
                    );
                }
                return(face);
            }