TorusGeometry QML Type | Qt 3D | Qt 6.12.0
Description: TorusGeometry allows creation of a torus in 3D space.
Keywords: qmltype

- Qt 6.12
- Qt 3D
- QML Types
- Qt3D.Extras (Deprecated)
- TorusGeometry
- Qt 6.12.0 Reference Documentation

# TorusGeometry QML Type

TorusGeometry allows creation of a torus in 3D space. More...

Import Statement: | `import Qt3D.Extras 2.12`
In C++: | QTorusGeometry
Status: | Deprecated

This type is deprecated. We strongly advise against using it in new code.

- List of all members, including inherited members

## Properties

- indexAttribute : Attribute
- minorRadius : real
- normalAttribute : Attribute
- positionAttribute : Attribute
- radius : real
- rings : int
- slices : int
- texCoordAttribute : Attribute

## Detailed Description

The TorusGeometry type is most commonly used internally by the TorusMesh type but can also be used in custom GeometryRenderer types.

## Property Documentation

### indexAttribute : Attribute `[read-only]`

Holds the geometry index attribute.

### minorRadius : real

Holds the inner radius of the torus.

### normalAttribute : Attribute `[read-only]`

Holds the geometry normal attribute.

### positionAttribute : Attribute `[read-only]`

Holds the geometry position attribute.

### radius : real

Holds the outer radius of the torus.

### rings : int

Holds the number of rings in the torus.

### slices : int

Holds the number of slices in the torus.

### texCoordAttribute : Attribute `[read-only]`

Holds the geometry texture coordinate attribute.