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。
© 2025 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.