예제 #1
0
        public override void Parse(string line)
        {
            var parts = line.Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries);

            var x = parts[0].ParseInvariantFloat();
            var y = parts[1].ParseInvariantFloat();
            var z = parts[2].ParseInvariantFloat();

            var normal = new VertexNormal(x, y, z);
            _normalDataStore.AddNormal(normal);
        }
예제 #2
0
 public void AddNormal(VertexNormal normal)
 {
     _normals.Add(normal);
 }