Provides geometry for a torus. 更多...
| import 语句: |
import QtQuick3D.Helpers
|
| Since: | Qt 6.9 |
| 继承: |
TorusGeometry is a geometry type that represents a torus. The torus is defined by the number of rings and segments, and the radius of the torus.
|
asynchronous : bool |
This property holds whether the geometry generation should be asynchronous.
|
radius : real |
Specifies the radius of the torus. The default value is 100.
|
rings : int |
Specifies the number of rings in the torus. The default value is 50.
|
segments : int |
Specifies the number of segments in the torus. The default value is 50.
|
status
:
bool
|
This property holds the status of the geometry generation when asynchronous is true.
| 常量 | 描述 |
|---|---|
TorusGeometry.Null
|
The geometry generation has not started |
TorusGeometry.Ready
|
The geometry generation is complete. |
TorusGeometry.Loading
|
The geometry generation is in progress. |
TorusGeometry.Error
|
The geometry generation failed. |
|
tubeRadius : real |
Specifies the radius of the tube of the torus. The default value is 10.