class QCylinderGeometry

The QCylinderGeometry class allows creation of a cylinder in 3D space. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry

Synopsis

Properties

Methods

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

The QCylinderGeometry class is most commonly used internally by the QCylinderMesh but can also be used in custom QGeometryRenderer subclasses.

Note

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

property indexAttributeᅟ: QAttribute

Holds the geometry index attribute.

Access functions:
property lengthᅟ: float

Holds the length of the cylinder.

Access functions:
property normalAttributeᅟ: QAttribute

Holds the geometry normal attribute.

Access functions:
property positionAttributeᅟ: QAttribute

Holds the geometry position attribute.

Access functions:
property radiusᅟ: float

Holds the radius of the cylinder.

Access functions:
property ringsᅟ: int

Holds the number of rings in the cylinder.

Access functions:
property slicesᅟ: int

Holds the number of slices in the cylinder.

Access functions:
property texCoordAttributeᅟ: QAttribute

Holds the geometry texture coordinate attribute.

Access functions:
__init__([parent=None])
Parameters:

parentQNode

Constructs a new QCylinderMesh with parent.

indexAttribute()
Return type:

QAttribute

Getter of property indexAttributeᅟ .

length()
Return type:

float

See also

setLength()

Getter of property lengthᅟ .

lengthChanged(length)
Parameters:

length – float

Notification signal of property lengthᅟ .

normalAttribute()
Return type:

QAttribute

Getter of property normalAttributeᅟ .

positionAttribute()
Return type:

QAttribute

Getter of property positionAttributeᅟ .

radius()
Return type:

float

See also

setRadius()

Getter of property radiusᅟ .

radiusChanged(radius)
Parameters:

radius – float

Notification signal of property radiusᅟ .

rings()
Return type:

int

See also

setRings()

Getter of property ringsᅟ .

ringsChanged(rings)
Parameters:

rings – int

Notification signal of property ringsᅟ .

setLength(length)
Parameters:

length – float

See also

length()

Setter of property lengthᅟ .

setRadius(radius)
Parameters:

radius – float

See also

radius()

Setter of property radiusᅟ .

setRings(rings)
Parameters:

rings – int

See also

rings()

Setter of property ringsᅟ .

setSlices(slices)
Parameters:

slices – int

See also

slices()

Setter of property slicesᅟ .

slices()
Return type:

int

See also

setSlices()

Getter of property slicesᅟ .

slicesChanged(slices)
Parameters:

slices – int

Notification signal of property slicesᅟ .

texCoordAttribute()
Return type:

QAttribute

Getter of property texCoordAttributeᅟ .

updateIndices()

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

updateVertices()

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