本页内容

TorusGeometry QML Type

提供环面的几何信息。更多...

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

Geometry

属性

详细说明

TorusGeometry 是一种表示环面的几何类型。环面由环数、段数以及环面的半径来定义。

属性文档

asynchronous : bool

该属性用于指定几何体生成是否应以异步方式进行。

radius : real

指定环面的半径。默认值为 100。

rings : int

指定环面中的环数。默认值为 50。

segments : int

指定环面中的分段数。默认值为 50。

status : bool [read-only]

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

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

tubeRadius : real

指定环面管子的半径。默认值为 10。

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