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#

Properties#

Functions#

Slots#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

* * * *

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

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QCylinderMesh with parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry index attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.length: float#

Holds the length of the cylinder.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry normal attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry position attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.radius: float#

Holds the radius of the cylinder.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.rings: int#

Holds the number of rings in the cylinder.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.slices: int#

Holds the number of slices in the cylinder.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry texture coordinate attribute.

Access functions:
PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.indexAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property indexAttribute .

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

float

See also

setLength()

Getter of property length .

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

length – float

Notification signal of property length .

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property normalAttribute .

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property positionAttribute .

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

float

See also

setRadius()

Getter of property radius .

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

radius – float

Notification signal of property radius .

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

int

See also

setRings()

Getter of property rings .

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

rings – int

Notification signal of property rings .

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

length – float

See also

length()

Setter of property length .

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

radius – float

See also

radius()

Setter of property radius .

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

rings – int

See also

rings()

Setter of property rings .

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

slices – int

See also

slices()

Setter of property slices .

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

int

See also

setSlices()

Getter of property slices .

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

slices – int

Notification signal of property slices .

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

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property texCoordAttribute .

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.