SphereGeometry QML Type

提供球体的几何形状。更多

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

Geometry

属性

详细说明

SphereGeometry 是一种表示球体的几何体类型。球体的大小由半径定义。球体的拓扑结构由环和段的数量定义。

属性文档

asynchronous : bool

此属性表示几何体的生成是否应该是异步的。


radius : real

球体的半径。默认值为 100.0。


rings : int

球体中的环数。默认值为 16。


segments : int

球体中的段数。默认值为 32。


status : bool [read-only]

当异步为 true 时,此属性用于保存几何体生成的状态。

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

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