PlaneGeometry QML Type
提供平面的几何信息。更多...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.9 |
| Inherits: |
属性
- asynchronous : bool
- height : real
- meshResolution : size
- mirrored : bool
- plane : PlaneGeometry::Plane
- reversed : bool
- status : bool
- width : real
详细说明
PlaneGeometry 是一种表示平面的几何类型。平面的尺寸由其 height 和 width 属性定义。平面的拓扑结构由meshResolution 属性定义。平面的方向由 plane 属性定义。
属性文档
asynchronous : bool
该属性用于指定几何体生成是否应以异步方式进行。
height : real
飞机的高度。默认值为 100.0。
meshResolution : size
平面的分辨率。默认值为QSize (2, 2)。
mirrored : bool
该属性用于控制平面的 UV 坐标是否进行垂直翻转。
plane : PlaneGeometry::Plane
平面的方向。默认值为PlaneGeometry.XY。所有几何体都将沿所选平面创建,且前表面及其法线将指向剩余的正轴,除非“reversed”为真。
| 常量 | 描述 |
|---|---|
PlaneGeometry.XY | 该平面的方向沿 XY 平面。 |
PlaneGeometry.XZ | 平面沿 XY 平面定向。 |
PlaneGeometry.ZY | 该平面沿 ZY 平面定向。 |
reversed : bool
该属性决定了平面是否被翻转。这会同时改变平面的法线方向和绕组顺序。 默认值为 false,这意味着当创建一个具有 XY 方向的平面时,法线将指向 Z 轴正方向,且绕行顺序为逆时针。当“反转”设置为 true 时,法线将指向 Z 轴负方向,且绕行顺序为顺时针。
status : bool [read-only]
当“asynchronous”为真时,该属性保存几何体生成的状态。
| 常量 | 描述 |
|---|---|
PlaneGeometry.Null | 几何生成尚未开始 |
PlaneGeometry.Ready | 几何生成已完成。 |
PlaneGeometry.Loading | 正在生成几何图形。 |
PlaneGeometry.Error | 几何体生成失败。 |
width : real
平面的宽度。默认值为 100.0。
© 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.