public Form1()
{
InitializeComponent();
}
public Workspace m_workSpace;
public SceneControl m_sceneControl;
private void Form1_Load(object sender, EventArgs e)
{
m_workSpace = new SuperMap.Data.Workspace();
m_sceneControl = new SuperMap.UI.SceneControl();
m_sceneControl.Action = Action3D.Pan;
m_sceneControl.Dock = DockStyle.Fill;
m_sceneControl.Scene.Workspace = m_workSpace;
string m_file = "工作空间文件(*.smwu)|*.smwu";
OpenFileDialog openWorkSpace=new OpenFileDialog();
openWorkSpace .Filter=m_file;
openWorkSpace .FilterIndex=0;
string WorkspacePath;
if(openWorkSpace.ShowDialog()==DialogResult.OK)
{
WorkspacePath =openWorkSpace.FileName;
WorkspaceConnectionInfo workspaceConnectionInfo = new WorkspaceConnectionInfo(@WorkspacePath);
m_workSpace.Open(workspaceConnectionInfo);
m_sceneControl.Scene.Open("OlympicGreen");
}
}
请问如何修改代码才能在scenecontrol里显示三维场景呢,运行后只出现地球。