/// <summary> /// Read fbx file. /// </summary> /// <returns></returns> public static Scene Read(string path, ErrorLevel errorLevel, NotificationHandler notificationHandler = null) { using (FbxReader reader = new FbxReader(path, errorLevel)) { reader.OnNotification = notificationHandler; return(reader.Read()); } }
/// <summary> /// Parse the document into a node structure. /// </summary> /// <returns></returns> public static FbxRootNode Parse(Stream stream, ErrorLevel errorLevel, NotificationHandler notificationHandler = null) { using (FbxReader reader = new FbxReader(stream, errorLevel)) { reader.OnNotification = notificationHandler; return(reader.Parse()); } }