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鈥�

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

* * * *

class PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry([parent=None])露

Constructs a new QSphereGeometry with parent .

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangents()露
Return type:

bool

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

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangentsChanged(generateTangents)露
Parameters:

generateTangents 鈥� bool

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.indexAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry index attribute.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.normalAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry normal attribute.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.positionAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry position attribute.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.radius()露
Return type:

float

Holds the radius of the sphere.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.radiusChanged(radius)露
Parameters:

radius 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.rings()露
Return type:

int

Holds the number of rings in the sphere.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.ringsChanged(rings)露
Parameters:

rings 鈥� int

PySide2.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.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRadius(radius)露
Parameters:

radius 鈥� float

Holds the radius of the sphere.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRings(rings)露
Parameters:

rings 鈥� int

Holds the number of rings in the sphere.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setSlices(slices)露
Parameters:

slices 鈥� int

Holds the number of slices in the sphere.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.slices()露
Return type:

int

Holds the number of slices in the sphere.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.slicesChanged(slices)露
Parameters:

slices 鈥� int

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.tangentAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry tangent attribute.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.texCoordAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry texture coordinate attribute.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateIndices()露

Updates indices based on rings and slices properties.

PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateVertices()露

Updates vertices based on rings, slices, and radius properties