QCylinderGeometry

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

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry

Synopsis

Functions

Detailed Description

* * * *

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

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QCylinderMesh with parent.

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.length()
Return type

float

See also

setLength()

PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.lengthChanged(length)
Parameters

length – float

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

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

float

See also

setRadius()

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

radius – float

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

int

See also

setRings()

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

rings – int

PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setLength(length)
Parameters

length – float

See also

length()

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

radius – float

See also

radius()

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

rings – int

See also

rings()

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

slices – int

See also

slices()

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

int

See also

setSlices()

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

slices – int

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.updateIndices()

Updates the indices based on rings, slices, and length properties.

PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.updateVertices()

Updates the vertices based on rings, slices, and length properties.