如何在更改高度图的bimapdata时更新Elevation对象?
我注意到getHeightAtPosition()更新了新位图的值,但Elevation看起来仍然相同..
(我知道可以遍历几何网格中的所有顶点并根据位图调整它们,但Elevation的好处是你不必这样做。如果它可以调整到位图在创建它应该能够更新..)
答案 0 :(得分:1)
好的,我在远离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();