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); } }
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); } }