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 PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

* * * *

class PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry([parent=None])露

Constructs a new QTorusGeometry with parent .

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.indexAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry index attribute.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.minorRadius()露
Return type:

float

Holds the inner radius of the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.minorRadiusChanged(minorRadius)露
Parameters:

minorRadius 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.normalAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry normal attribute.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.positionAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry position attribute.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.radius()露
Return type:

float

Holds the outer radius of the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.radiusChanged(radius)露
Parameters:

radius 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.rings()露
Return type:

int

Holds the number of rings in the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.ringsChanged(rings)露
Parameters:

rings 鈥� int

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setMinorRadius(minorRadius)露
Parameters:

minorRadius 鈥� float

Holds the inner radius of the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setRadius(radius)露
Parameters:

radius 鈥� float

Holds the outer radius of the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setRings(rings)露
Parameters:

rings 鈥� int

Holds the number of rings in the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setSlices(slices)露
Parameters:

slices 鈥� int

Holds the number of slices in the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.slices()露
Return type:

int

Holds the number of slices in the torus.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.slicesChanged(slices)露
Parameters:

slices 鈥� int

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.texCoordAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry texture coordinate attribute.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.updateIndices()露

Updates indices based on rings and slices properties.

PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.updateVertices()露

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