Esempio n. 1
0
 // Most of the code for the 3ds loader is in the ThreeDSFile.cs
 // This function is just the entry point for it all
 public bool Load3ds(string filename)
 {
     try
     {
         ThreeDSFile tds = new ThreeDSFile(filename);
         foreach (Object3d obj in tds.ThreeDSModel)
         {
             this.Add(obj);
         }
         Update();
         m_fullname = filename;
         m_name     = Path.GetFileNameWithoutExtension(filename);
         return(true);
     }
     catch (Exception e)
     {
         DebugLogger.Instance().LogError(e.Message);
         return(false);
     }
 }
 // Most of the code for the 3ds loader is in the ThreeDSFile.cs
 // This function is just the entry point for it all
 public bool Load3ds(string filename) 
 {
    
     try
     {
         ThreeDSFile tds = new ThreeDSFile(filename);
         foreach (Object3d obj in tds.ThreeDSModel) 
         {
             this.Add(obj);
         }
         Update();
         m_fullname = filename;
         m_name = Path.GetFileNameWithoutExtension(filename);
         return true;
     }   
     catch (Exception e) 
     {
         DebugLogger.Instance().LogError(e.Message);
         return false;
     }
 }