Esempio n. 1
0
        public static MtlFile FromReader(StreamReader r)
        {
            var mtl = new MtlFile();

            mtl.Load(r);
            return(mtl);
        }
Esempio n. 2
0
        private void LoadMtlLib(string file)
        {
            var mtlfile = Path.IsPathRooted(file) ? file
                : FileName == null ? file : Path.Combine(Path.GetDirectoryName(FileName), file);

            if (File.Exists(mtlfile))
            {
                MtlData = MtlFile.FromFile(mtlfile);
            }
        }
Esempio n. 3
0
 public MtlMaterial(MtlFile owner, int index)
 {
     Owner = owner;
     Index = index;
 }