CuboidGeometry QML Type

提供长方体的几何形状。更多

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.9
Inherits:

Geometry

属性

详细说明

CuboidGeometry 是一种表示长方体的几何体类型。长方体的大小由xExtent,yExtent, 和zExtent 属性定义。平面的拓扑结构由yzMeshResolution,xzMeshResolution, 和xyMeshResolution 属性定义。

属性文档

asynchronous : bool

该属性显示几何体生成是否应为异步。


status : bool [read-only]

当异步为 true 时,该属性表示几何体生成的状态。

常量说明
CuboidGeometry.Null几何体生成尚未开始
CuboidGeometry.Ready几何体生成已完成。
CuboidGeometry.Loading几何体生成正在进行。
CuboidGeometry.Error几何体生成失败。

xExtent : real

长方体的 x 范围。默认值为 100.0。


xyMeshResolution : size

x 和 y 方向上的线段数。默认值为 2x2。


xzMeshResolution : size

x 和 z 方向上的线段数。默认值为 2x2。


yExtent : real

长方体的 y 轴范围。默认值为 100.0。


yzMeshResolution : size

y 和 z 方向上的线段数。默认值为 2x2。


zExtent : real

长方体的 Z 轴范围。默认值为 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.