直接设置AltitudeModeExpression属性为2是可以实现地下效果,但是地表透明看不见,可以通过以下方式设置:
Layer3D layer3DOK = sceneControl.Scene.Layers[0];
Layer3DDataset sd = layer3DOK as Layer3DDataset;
Layer3DSettingVector Sytle = sd.AdditionalSetting as Layer3DSettingVector;
GeoStyle3D geoStyle3D = Sytle.Style;
geoStyle3D.AltitudeMode = AltitudeMode.AbsoluteUnderGround;
Sytle.Style = geoStyle3D;
layer3DOK.UpdateData();