HeightFieldGeometry QML Type
高程场几何体。更多...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.4 |
| Inherits: |
属性
- extents : vector3d
- smoothShading : bool
- source : url
详细说明
该辅助类实现了一个高度场几何体。它定义了一个由灰度图像构建的曲面。 在水平平面上,曲面某一点的 y 坐标由图像中该点对应的像素值决定。图像的 x 轴和 y 轴将分别与几何体的 x 轴和 z 轴对齐。
属性文档
extents : vector3d
该属性定义了高度场的范围,即一个足以始终容纳该几何体的框的尺寸。当图像为正方形时,默认值为 (100, 100, 100)。
smoothShading : bool
此属性用于定义高度图是采用平滑阴影效果显示,还是在地图方块之间显示锐角。
默认值为true ,表示已启用平滑阴影。
source : url
此属性定义了高度图图像的 URL。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.