/// <summary> /// Reads a binary FBX file /// </summary> /// <param name="path"></param> /// <returns>The top level document node</returns> public static FbxDocument ReadBinary(string path) { if(path == null) throw new ArgumentNullException(nameof(path)); using (var stream = new FileStream(path, FileMode.Open)) { var reader = new FbxBinaryReader(stream); return reader.Read(); } }
public static FbxDocument ReadBinary(Stream stream) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } var reader = new FbxBinaryReader(stream); return(reader.Read()); }
/// <summary> /// Reads a binary FBX file /// </summary> /// <param name="path"></param> /// <returns>The top level document node</returns> public static FbxDocument ReadBinary(string path) { if (path == null) { throw new ArgumentNullException(nameof(path)); } using (var stream = new FileStream(path, FileMode.Open)) { var reader = new FbxBinaryReader(stream); return(reader.Read()); } }
/// <summary> /// Reads a binary FBX file /// </summary> /// <param name="fbxStream"></param> /// <returns>The top level document node</returns> public static FbxDocument ReadBinary(Stream fbxStream) { var reader = new FbxBinaryReader(fbxStream); return(reader.Read()); }