使用产品:iobjects .net 10i 操作系统:win11 x64 数据类型: postgresql 或 文件型
问题详细描述: 在加载dem作为地形后,地表开挖结果会高出地表十几米,但是不加载地形就不会这样,是什么原因?
是用的supermap示例程序里的方式实现的
设置GeoStyle3D的相关属性
this.m_geoStyle3D = new GeoStyle3D(); this.m_geoStyle3D.BottomAltitude = 0; this.m_geoStyle3D.ExtendedHeight = (-1) * Convert.ToDouble(this.m_textBoxDepth.Text); this.m_geoStyle3D.SideTextureFiles = new String[] { this.m_textBoxSideTextureFile.Text }; this.m_geoStyle3D.TilingU = Convert.ToDouble(this.m_textBoxSideTillingU.Text); this.m_geoStyle3D.TilingV = Convert.ToDouble(this.m_textBoxSideTillingV.Text.ToString()); this.m_geoStyle3D.TopTextureFile = this.m_textBoxBottomTextureFile.Text; this.m_geoStyle3D.TopTilingU = Convert.ToDouble(this.m_textBoxBottomTillingU.Text.ToString()); this.m_geoStyle3D.TopTilingV = Convert.ToDouble(this.m_textBoxBottomTillingV.Text.ToString());
然后把GeoStyle3D赋值给GeoRegion3D.Style3D
最后将把GeoRegion3D,添加到GlobelImage
sceneControl.Scene.GlobalImage.AddExcavationRegion(geoRegion3D, "ExcavationRegion3");