本页内容

CylinderGeometry QML Type

提供圆柱体的几何信息。更多...

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

Geometry

属性

详细说明

CylinderGeometry 是一种用于生成圆柱形状的几何类型。圆柱的形状由其半径和长度属性定义。圆柱的拓扑结构由段数和环数定义。

属性文档

asynchronous : bool

该属性用于指定几何体的生成是否应为异步操作。

length : real

该属性存储圆柱体的长度。要生成有效的圆柱体,该属性必须大于 0。

radius : real

该属性存储圆柱体的半径。要生成有效的圆柱体,该属性必须大于 0。

rings : int

该属性存储圆柱体中的环数。这些环是圆柱体沿长度方向的划分。环数的最小值为 0。

segments : int

该属性存储圆柱体中的分段数。这些分段是圆柱体的径向分区。分段数的下限为3。

status : bool [read-only]

当“asynchronous”为真时,该属性保存几何体生成的状态。

常量描述
CylinderGeometry.Null几何生成尚未开始
CylinderGeometry.Ready几何生成已完成。
CylinderGeometry.Loading正在生成几何图形。
CylinderGeometry.Error几何体生成失败。

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