Exemple #1
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();
			}
		}
Exemple #2
0
        public static FbxDocument ReadBinary(Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }
            var reader = new FbxBinaryReader(stream);

            return(reader.Read());
        }
Exemple #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());
     }
 }
Exemple #4
0
        /// <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());
        }