跟踪图层增加模型对象后,显示不出来,代码如下:
m_workspace = workspace;
m_sceneControl = sceneControl;
m_sceneControl.Scene.Workspace = workspace;
WorkspaceConnectionInfo conInfo = new WorkspaceConnectionInfo(@"..\Resources\OlympicGreen\OlympicGreen.smwu");
conInfo.Type = WorkspaceType.SMWU;
m_workspace.Open(conInfo);
m_sceneControl.Scene.Open("OlympicGreen");
m_trackingLyr3D = m_sceneControl.Scene.TrackingLayer;
GeoModel m_model1 = new GeoModel();
m_model1.FromFile(@"..\DragonSoft\Resources\Airplane\Airplane.SGM");
Point3D point = new Point3D(116.392422,39.98828,9.99648);
m_model1.Position = point;
int index = m_trackingLyr3D.Add(m_model1, "1");