Esempio n. 1
0
 /// <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());
     }
 }
Esempio n. 2
0
 /// <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());
     }
 }