Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var viewer3D  = new Viewer3D();
            var directory = Environment.CurrentDirectory;
            var fileName  = System.IO.Path.Combine(directory, "Resources/Coronavirus_obj/covid19.obj");

            viewer3D.Show();
            if (System.IO.File.Exists(fileName))
            {
                viewer3D.OpenFile(fileName);
            }
        }
Example #2
0
        public static void Open3DView()
        {
            viewer3D = new Viewer3D();
            var directory = Environment.CurrentDirectory;
            var fileName  = System.IO.Path.Combine(directory, "Resources/Coronavirus_obj/covid19.obj");

            viewer3D.Show();
            if (System.IO.File.Exists(fileName))
            {
                viewer3D.OpenFile(fileName);
            }
        }