本页内容

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]

当“asynchronous”为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 方向上的分段数。默认值为 2×2。

zExtent : real

长方体的 z 方向尺寸。默认值为 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.