0

Click to select the model

Smile 3 months ago 0
  • 我使用以下代码导入了多个模型


Microsoft.Win32.OpenFileDialog对话框=

新的Microsoft.Win32.OpenFileDialog();

dialog.Filter =“3dFile | * .obj”;

if(dialog.ShowDialog()== true && System.IO.File.Exists(dialog.FileName))

{

ObjReader CurrentHelixObjReader = new ObjReader();

Model3DGroup MyModel = CurrentHelixObjReader.Read(dialog.FileName);

ModelVisual3D model = new ModelVisual3D();

model.Content = MyModel;

View3D.Children.Add(模型);

MessageBox.Show( “成功!”);

}


但是,如何通过单击鼠标选择模型并移动它

Media3D WPF