- Qt 6.11
- Qt Quick 3D
- QML Types
- QtQuick3D.Helpers
- TorusGeometry
- Qt Quick 3D | Commercial or GPLv3

# TorusGeometry QML Type

Provides geometry for a torus. More...

Import Statement: | `import QtQuick3D.Helpers`
Since: | Qt 6.9
Inherits: | Geometry

- List of all members, including inherited members

## Properties

- asynchronous : bool
- radius : real
- rings : int
- segments : int
- status : bool
- tubeRadius : real

## Detailed Description

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.

## Property Documentation

### 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 `[read-only]`

This property holds the status of the geometry generation when asynchronous is true.

Constant | Description
--- | ---
`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.