使用产品:iobjects 10.2 操作系统:win10 x64
数据类型:文件型
问题详细描述:在三维平面场景中导入CAD和SHP数据,不显示。但在桌面端iDesktop导入正常显示。
if (dataset.Type == DatasetType.Line3D)
{
Layer3DSettingVector layer3DSettingVector = new Layer3DSettingVector();
GeoStyle3D geoStyle3D = new GeoStyle3D
{
AltitudeMode = AltitudeMode.ClampToGround,
};
layer3DSettingVector.Style = geoStyle3D;
// 这两行代码都不在平面场景中显示
//mLayersControl.Scene.Layers.Add(dataset, layer3DSettingVector, true);
mLayersControl.Scene.Layers.Add(dataset, layer3DSettingVector, true);
}
else if (dataset.Type == DatasetType.CAD)
{
Layer3DSettingVector layer3DSettingVector = new Layer3DSettingVector();
GeoStyle3D geoStyle3D = new GeoStyle3D
{
AltitudeMode = AltitudeMode.ClampToGround,
};
layer3DSettingVector.Style = geoStyle3D;
// 这两行代码都不在平面场景中显示
mLayersControl.Scene.Layers.Add(dataset, layer3DSettingVector, true);
//mLayersControl.Scene.Layers.Add(dataset, (Layer3DSetting)null, true);
}