예제 #1
0
 public ToolDefault(ControllerEditor controller)
     : base(controller)
 {
     string filepath = Path.Combine(Directory.GetCurrentDirectory(), "editor assets", "models", "coordinateArrows.obj");
     ModelLoader loader = new ModelLoader();
     translationModel = loader.LoadObj(filepath);
     translationModel.Transform.Position = new Vector3(0, 0, 5);
 }
예제 #2
0
 private void _openFileDialog_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ControllerEditor.AddAction(() =>
     {
         string fileName = ((OpenFileDialog)sender).FileName;
         ModelLoader loader = new ModelLoader();
         Model model = loader.LoadObj(fileName);
     });
 }