/// <summary> /// Writes an FBX document /// </summary> /// <param name="document">The top level document node</param> /// <param name="path"></param> public static void WriteBinary(FbxDocument document, string path) { if (path == null) throw new ArgumentNullException(nameof(path)); using (var stream = new FileStream(path, FileMode.Create)) { var writer = new FbxBinaryWriter(stream); writer.Write(document); } }
/// <summary> /// Writes an FBX document /// </summary> /// <param name="document">The top level document node</param> /// <param name="path"></param> public static void WriteBinary(FbxDocument document, string path) { if (path == null) { throw new ArgumentNullException(nameof(path)); } using (var stream = new FileStream(path, FileMode.Create)) { var writer = new FbxBinaryWriter(stream); writer.Write(document); } }
/// <summary> /// Writes an FBX document /// </summary> /// <param name="document">The top level document node</param> /// <param name="stream">Output stream</param> public static void WriteBinary(FbxDocument document, Stream stream) { var writer = new FbxBinaryWriter(stream); writer.Write(document); }