Ejemplo n.º 1
0
        public static bool IsBinaryFbx(Stream stream)
        {
            var position = stream.Position;
            var isBinary = FbxBinaryReader.ReadHeader(stream);

            stream.Position = position;
            return(isBinary);
        }
Ejemplo n.º 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());
        }