示例#1
0
        public static bool IsBinaryFbx(Stream stream)
        {
            var position = stream.Position;
            var isBinary = FbxBinaryReader.ReadHeader(stream);

            stream.Position = position;
            return(isBinary);
        }
示例#2
0
        /// <summary>
        /// Reads a binary FBX file
        /// </summary>
        /// <param name="stream"></param>
        /// <returns>The top level document node</returns>
        public static FbxDocument ReadBinary(Stream stream, ErrorLevel errorLevel = ErrorLevel.Checked)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }
            var reader = new FbxBinaryReader(stream, errorLevel);

            return(reader.Read());
        }