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 是一种表示平面的几何体类型。平面的大小由高度和宽度属性定义。平面的拓扑结构由meshResolution 属性定义。平面的方向由 plane 属性定义。
属性文档
asynchronous : bool |
该属性表示几何体生成是否应为异步。
height : real |
平面高度。默认值为 100.0。
mirrored : bool |
平面的 UV 坐标:该属性用于设置平面的 UV 坐标是否垂直翻转。
plane : PlaneGeometry::Plane |
平面的方向。默认值为PlaneGeometry.XY。除非反转为 true,否则所有几何体都将沿所选平面创建,正面和法线将指向剩余的正轴。
常数 | 说明 |
---|---|
PlaneGeometry.XY | 平面沿 XY 平面定向。 |
PlaneGeometry.XZ | 平面沿 XZ 平面定向。 |
PlaneGeometry.ZY | 平面沿 ZY 平面定向。 |
reversed : bool |
无论平面是否翻转,此属性都有效。这会改变平面的法线和卷绕顺序。默认值为 false,这意味着以 XY 方向创建平面时,法线将指向正 Z 方向,卷绕顺序为逆时针。当反转为 true 时,法线将指向负 Z 方向,卷绕顺序为顺时针。
status : bool |
当异步为真时,此属性保留几何体生成的状态。
常数 | 说明 |
---|---|
PlaneGeometry.Null | 几何体生成尚未开始 |
PlaneGeometry.Ready | 几何体生成已完成。 |
PlaneGeometry.Loading | 几何体生成正在进行。 |
PlaneGeometry.Error | 几何体生成失败。 |
width : real |
平面的宽度。默认值为 100.0。
© 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.