QTorusGeometry

The QTorusGeometry class allows creation of a torus in 3D space. * * * * * The QTorusGeometry class is most commonly used internally by the QTorusMesh * but can also be used in custom QGeometryRenderer subclasses. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry

Synopsis

Functions

Slots

Signals

Detailed Description

* * * *

class PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QTorusGeometry with parent.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.indexAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry index attribute.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.minorRadius()
Return type

float

Holds the inner radius of the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.minorRadiusChanged(minorRadius)
Parameters

minorRadius – float

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.normalAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry normal attribute.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.positionAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry position attribute.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.radius()
Return type

float

Holds the outer radius of the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.radiusChanged(radius)
Parameters

radius – float

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.rings()
Return type

int

Holds the number of rings in the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.ringsChanged(rings)
Parameters

rings – int

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.setMinorRadius(minorRadius)
Parameters

minorRadius – float

Holds the inner radius of the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.setRadius(radius)
Parameters

radius – float

Holds the outer radius of the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.setRings(rings)
Parameters

rings – int

Holds the number of rings in the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.setSlices(slices)
Parameters

slices – int

Holds the number of slices in the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.slices()
Return type

int

Holds the number of slices in the torus.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.slicesChanged(slices)
Parameters

slices – int

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.texCoordAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry texture coordinate attribute.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.updateIndices()

Updates indices based on rings and slices properties.

PySide6.Qt3DExtras.Qt3DExtras.QTorusGeometry.updateVertices()

Updates vertices based on rings, slices, and radius properties.