コード例 #1
0
ファイル: FbxIO.cs プロジェクト: Hengle/FbxWriter
		/// <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();
			}
		}
コード例 #2
0
        public static FbxDocument ReadBinary(Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }
            var reader = new FbxBinaryReader(stream);

            return(reader.Read());
        }
コード例 #3
0
 /// <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());
     }
 }
コード例 #4
0
ファイル: FbxIO.cs プロジェクト: gbanfill/FbxWriter
        /// <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());
        }