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