三维通过ActionGraphicObject3D标绘,添加到CAD数据集,CAD数据集设置样式起作用不,现在是添加的符号没有贴着地形,而是部分在地形里去了要怎么解决?
DatasetVectorInfo cadLayerInfo = new DatasetVectorInfo("cad", DatasetType.CAD);
DatasetVector cadDataset = datasource.Datasets.Create(cadLayerInfo);
Layer3DSettingVector layer3DSetting = new Layer3DSettingVector();
GeoStyle3D style = new GeoStyle3D();
style.AltitudeMode = AltitudeMode.ClampToGround;
layer3DSetting.Style = style;
m_cadLayer = m_sceneControl.Scene.Layers.Add(cadDataset, layer3DSetting, true);
m_cadLayer.IsEditable = true;