0

当我更改高度图的 bimapdata 时,如何更新我的高程对象?

我注意到 getHeightAtPosition() 更新为新位图的值,但高程看起来仍然一样..

(我知道可以遍历几何网格中的所有顶点并根据位图调整它们,但是 Elevation 的好处是您不必这样做。如果它可以在创建时调整位图应该可以更新了..)

4

1 回答 1

1

好的,我在 away 3D 论坛上找到了答案:http: //away3d.com/forum/viewthread/1110/#3808

基本上,您需要在 Elevation 类中更改一行:

转到elevation.as并更改

private function updateGeometry()  

public function updateGeometry()

then on the render after you change the parameters call
_elevation.updateGeometry();
于 2011-12-09T13:58:27.233 回答