Example #1
0
 public void WriteTo(string path)
 {
     using (var writer = new StreamWriter(path))
     {
         ObjMaterialFileWriter.Write(this, writer);
     }
 }
Example #2
0
        public void WriteTo(Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            using (var writer = new StreamWriter(stream))
            {
                ObjMaterialFileWriter.Write(this, writer);
            }
        }