Ejemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            OpenFileDialog d = new OpenFileDialog();

            d.Filter = "Drill Files (*.obj)|*.obj";
            if (DialogResult.OK == d.ShowDialog())
            {
                ObjLoader o = new ObjLoader();
                o.LoadObj(d.FileName);
                userControl11.AddObject(o);
                //string[] lines = System.IO.File.ReadAllLines(d.FileName);
                //g_code = new GCode();
                //g_code.Parse(lines);
                //Rout[] routs = g_code.GetRouts();
                //foreach (Rout r in routs)
                //{
                //    userControl11.AddObject(r);
                //}
            }
        }
Ejemplo n.º 2
0
 public void CreateModel(SceneFaceHandlerParams settings, string filename)
 {
     loader.LoadObj(filename, loader.SceneFaceHandler, settings);
 }