Example #1
0
        protected Model parseModel(string url)
        {
            string baseDir = MascaretApplication.Instance.BaseDir;

              //  ModelLoader2 modelLoader = new ModelLoader2(url + "/" + baseDir, true);
            ModelLoader2 modelLoader = new ModelLoader2(baseDir + "/" + url, true);
            Model model = modelLoader.Model;
            model.ModelLoader = modelLoader;

            return model;
        }
        Model parseModel(string url)
        {
            //StreamWriter file = new StreamWriter("log.txt");
               // file.WriteLine(url);
               // file.Flush();
               // logfile.WriteLine("Parsing model file : " + url); logfile.Flush();
            ModelLoader2 modelLoader = new ModelLoader2(url, true);
            Model model = modelLoader.Model;
            model.ModelLoader = modelLoader;
            //file.Close();

            return model;
        }