使用iobject.net 10i ,采用代码添加模型数据集,刷新不出来数据,且显示的几个模型外表看起来有很多白点,一直显示空白,请问这种加载方式对吗?如何刷新
代码如下:
private void AddModel(Dataset dataset)
{
DatasetVector datasetVector = dataset as DatasetVector;
Layer3DSettingVector layer3DSettingVector = new Layer3DSettingVector();
layer3DSettingVector.Style = new GeoStyle3D();
layer3DSettingVector.Style.AltitudeMode = AltitudeMode.Absolute;
layer3DSettingVector.Style.BottomAltitude = 30;
Layer3D layer3D = m_sceneControl.Scene.Layers.Add(datasetVector, layer3DSettingVector, true, dataset.Name);
layer3D.UpdateData();
layer3D.IsSelectable = true;
m_sceneControl.Scene.EnsureVisible(layer3D);
m_sceneControl.Scene.Refresh();
m_layersControl.Refresh();
}