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

            return(reader.Read());
        }
Exemplo n.º 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());
     }
 }
Exemplo n.º 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());
        }