W3cubDocs

/Qt

TorusGeometry QML Type

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

Import Statement: import Qt3D.Extras
Instantiates: QTorusGeometry

Properties

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

Holds the geometry index attribute.

minorRadius : real

Holds the inner radius of the torus.

normalAttribute : Attribute

Holds the geometry normal attribute.

positionAttribute : Attribute

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

Holds the geometry texture coordinate attribute.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qml-qt3d-extras-torusgeometry.html