QSphereGeometry#

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

Synopsis#

Functions#

Slots#

Signals#

Detailed Description#

* * * *

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

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QSphereGeometry with parent.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangents()#
Return type

bool

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangentsChanged(generateTangents)#
Parameters

generateTangents – bool

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.indexAttribute()#
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry index attribute.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.normalAttribute()#
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry normal attribute.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.positionAttribute()#
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry position attribute.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.radius()#
Return type

float

Holds the radius of the sphere.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.radiusChanged(radius)#
Parameters

radius – float

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.rings()#
Return type

int

Holds the number of rings in the sphere.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.ringsChanged(rings)#
Parameters

rings – int

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setGenerateTangents(gen)#
Parameters

gen – bool

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRadius(radius)#
Parameters

radius – float

Holds the radius of the sphere.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRings(rings)#
Parameters

rings – int

Holds the number of rings in the sphere.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setSlices(slices)#
Parameters

slices – int

Holds the number of slices in the sphere.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.slices()#
Return type

int

Holds the number of slices in the sphere.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.slicesChanged(slices)#
Parameters

slices – int

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.tangentAttribute()#
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry tangent attribute.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.texCoordAttribute()#
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

Holds the geometry texture coordinate attribute.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateIndices()#

Updates indices based on rings and slices properties.

PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateVertices()#

Updates vertices based on rings, slices, and radius properties