QSphereGeometry

PyQt5.Qt3DExtras.QSphereGeometry

Inherits from QGeometry.

Description

* * * *

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.

Methods

__init__(parent: QNode = None)

Constructs a new QSphereGeometry with parent.


generateTangents() → bool

indexAttribute() → QAttribute

TODO


normalAttribute() → QAttribute

TODO


positionAttribute() → QAttribute

TODO


radius() → float

See also

setRadius().


rings() → int

See also

setRings().


setGenerateTangents(bool)

See also

generateTangents().


setRadius(float)

See also

radius().


setRings(int)

See also

rings().


setSlices(int)

See also

slices().


slices() → int

See also

setSlices().


tangentAttribute() → QAttribute

TODO


texCoordAttribute() → QAttribute

TODO


updateIndices()

Updates indices based on rings and slices properties.


updateVertices()

Updates vertices based on rings, slices, and radius properties

Signals

generateTangentsChanged(bool)

TODO


radiusChanged(float)

TODO


ringsChanged(int)

TODO


slicesChanged(int)

TODO