public static MtlFile FromReader(StreamReader r) { var mtl = new MtlFile(); mtl.Load(r); return(mtl); }
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); } }
public MtlMaterial(MtlFile owner, int index) { Owner = owner; Index = index; }