object.net如何在三维场景中用鼠标获取点击位置的x,y,z值,如同桌面中场景菜单下的查询坐标值功能;
倾斜摄影模型获取高度是这样的:void sceneControl_MouseMove(object sender, MouseEventArgs e) { Point3D point3D = sceneControl.Scene.PixelToGlobe(new Point(e.X, e.Y)); Double Height = sceneControl.Scene.GetHeight(point3D.X, point3D.Y); }
那如果是dem的地形数据也可以通过这个方法
void sceneControl_MouseMove(object sender, MouseEventArgs e) { Point3D point3D = sceneControl.Scene.PixelToGlobe(new Point(e.X, e.Y)); Double Height = sceneControl.Scene.GetHeight(point3D.X, point3D.Y); }
获取高度么?
获取DEM的数据高程建议使用Scene.GetAltitude,Scene.GetHeight是针对模型数据的